CN108768870A - Flow control methods, device and mobile terminal - Google Patents

Flow control methods, device and mobile terminal Download PDF

Info

Publication number
CN108768870A
CN108768870A CN201810420762.5A CN201810420762A CN108768870A CN 108768870 A CN108768870 A CN 108768870A CN 201810420762 A CN201810420762 A CN 201810420762A CN 108768870 A CN108768870 A CN 108768870A
Authority
CN
China
Prior art keywords
flow
webpage
resource
consumption
preset condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810420762.5A
Other languages
Chinese (zh)
Other versions
CN108768870B (en
Inventor
赵剑萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810420762.5A priority Critical patent/CN108768870B/en
Publication of CN108768870A publication Critical patent/CN108768870A/en
Application granted granted Critical
Publication of CN108768870B publication Critical patent/CN108768870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses a kind of flow control methods, device and mobile terminal, is related to Internet technical field.Wherein, this method includes:Count the flow of the webpage consumption of the browser;When the flow of the consumption is more than predetermined threshold value, determines in the corresponding resource for needing consumed flow of the webpage, meet the target resource of preset condition;It abandons asking the target resource for meeting preset condition.In the scheme that this method provides, the webpage that the flow of consumption can be more than predetermined threshold value carries out flow control, and user caused by reduction flow consumption is excessive loses.

Description

Flow control methods, device and mobile terminal
Technical field
This application involves Internet technical fields, eventually more particularly, to a kind of flow control methods, device and movement End.
Background technology
Browser is during networking, the flow that can consume.If flow consumption is excessive, customer flow may be exceeded Using budget, loss is brought to user, therefore, it is necessary to be monitored to flow use, control flow consumption, to avoid as far as possible User loses.
Invention content
In view of the above problems, present applicant proposes a kind of flow control methods, device and mobile terminals, for the stream of consumption The webpage for measuring the threshold value that excesses budget is abandoned the target resource that request wherein meets preset condition, is lost to avoid user.
In a first aspect, the embodiment of the present application provides a kind of flow control methods, it is applied to browser, the method packet It includes:Count the flow of the webpage consumption of the browser;When the flow of the consumption is more than predetermined threshold value, the webpage is determined In the corresponding resource for needing consumed flow, meet the target resource of preset condition;Abandon asking the preset condition that meets Target resource.
Second aspect, the embodiment of the present application provide a kind of volume control device, are applied to browser, described device packet It includes:Flow statistical module, the flow that the webpage for counting the browser consumes;Resource determination module, for disappearing when described When the flow of consumption is more than predetermined threshold value, determines in the corresponding resource for needing consumed flow of the webpage, meet preset condition Target resource;Resource processing module asks the target resource for meeting preset condition for abandoning.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including display screen, memory and processor, institute It states display screen and the memory is couple to the processor, the display screen is for showing that web page contents, the memory are deposited Storage instruction, the processor executes above-mentioned method when executed by the processor.
Fourth aspect, the embodiment of the present application provide it is a kind of with processor can perform program code it is computer-readable Storage medium, said program code make the processor execute the above method.
Flow control methods, device and mobile terminal provided by the present application unite to the flow consumption of browsing device net page Meter is more than predetermined threshold value when there is the flow that webpage consumes, the target resource for asking to meet preset condition in the webpage is abandoned, to subtract Few webpage flow consumption, avoids user from losing as possible.
These aspects or other aspects of the application can more straightforward in the following description.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the interaction schematic diagram of mobile terminal and server in the embodiment of the present application;
Fig. 2 shows the flow charts for the flow control methods that the application first embodiment proposes;
Fig. 3 shows the flow chart for the flow control methods that the application second embodiment proposes;
Fig. 4 shows a kind of display schematic diagram of webpage in the application second embodiment;
Fig. 5 shows the functional block diagram for the volume control device that the application 3rd embodiment proposes;
Fig. 6 shows a kind of structure diagram for the mobile terminal that the embodiment of the present application proposes;
Fig. 7 shows a kind of structure chart for the mobile terminal that the embodiment of the present application proposes;
Fig. 8 shows the mobile end for executing the flow control methods according to the embodiment of the present application of the embodiment of the present application The block diagram at end.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
Browser in use, has flow consumption.Wherein, flow is the byte that the various resources loaded are consumed, Unit has B, KB, MB, GB etc..
If a resources flowing amount consumption is excessive in webpage, flow bandwidth demand may be larger, may influence in webpage The load of other resources or the data load of other webpages, other clients, influence user experience.
In addition, for the mobile terminal used in the mobile networks such as 2G, 3G, 4G, if the consumption of browser flow is excessive, need More network charges are consumed, if in particular, flow consumption is beyond flow in user's set meal, it may be necessary to pay a large amount of networks Expense brings economic loss to user.
Also, the consumption of some flows is normal consumption in webpage, as video, word of user's actual request etc. consume Flow.And the consumption of some flows may be the consumption that network abduction is brought, such as unwitting in user, backstage is downloaded The data such as picture, installation kit, video.And the flow consumption that usually network abduction is brought is huge, for user again without any work With expensive damage user benefit.
Therefore, it is necessary to carry out traffic monitoring to browser, and the flow use of browser is controlled in any case System.On the one hand, it avoids flow from consuming the excessive usage experience to network, on the other hand, flow is avoided to consume the warp excessively brought Ji loss.
Traffic monitoring for browser can not be true if directly being realized by the monitoring function of mobile terminal itself It is fixed whether to have statistical demand, also, be only capable of counting the flow of each application program in mobile terminal, and there is no keep away The purpose exempted from and user is reminded to reduce loss.And this traffic statistics need user actively to go to pay close attention to the flow oneself used, Operation is very cumbersome there is no tremendous influence is generated to user, and user experience greatly reduces.
For browser, then total flow of browser consumption can only be counted, flow can not be consumed and be controlled System, flow consumption control not any effect for user.And it when user accesses webpage, independent can not count Go out the consumption of browser flow, also without any surveillance and control measure and its counte-rplan.Such as in certain novel webpages, possible user Residence time is longer, and web page contents may be held as a hostage or webpage oneself has certain commercial uses, and user is allowed to see novel When backstage is downloading the advertising pictures on some game etc. or webpage always using high definition picture, one tens data, Get off for a period of time in this way user effort flow may just high, the flow of GB as above, need to pay a large amount of network charges, The traffic monitoring of of mobile phone itself is not played the role of any in fact under this situation.
Inventor has found that flow consumption comes from each webpage in browser, and the flow consumption in each webpage comes From each resource in webpage.Therefore, when controlling flow in browser, can be judged whether as unit of webpage It needs to control, and in actually controlling, the resource in webpage can be controlled, both realize the flow control to browser, User's loss is reduced, and the obstruction used browser can be reduced as far as possible.
Therefore, the embodiment of the present application provides a kind of flow control methods, is applied to the browser of mobile terminal.In the party In method, the flow of the consumption of statistical web page, and whether resource, which loads, is carried out to the webpage that the flow of consumption is more than predetermined threshold value Control, effectively control browser flow consumption, reduce user loss.
Wherein, which can interact with server, obtain web page resources from server, while consuming stream Amount.Fig. 1 shows a kind of interactive schematic diagram between server 1 and mobile terminal 2 in the embodiment of the present application, wherein with service The quantity of the mobile terminal of device interaction does not limit, and can be multiple, one is only shown in Fig. 1.As shown in Figure 1, mobile terminal 2 It is located in network 3 with server 1, which can be wireless network or cable network.Pass through the wireless network or wired network Network, mobile terminal 2 and server 1 carry out data interaction.In the application, mobile terminal 2 can be mobile phone, tablet computer, meter The smart machines such as calculation machine.Below in conjunction with attached drawing and by specific embodiment to flow control side provided by the embodiments of the present application Method and device illustrate.
First embodiment
Referring to Fig. 2, the application first embodiment provides a kind of flow control methods.The flow control methods are used for The flow of browser in mobile terminal is controlled.In this method, browser is to the net that the flow of consumption is more than predetermined threshold value Page carries out flow control.In the particular embodiment, the flow control methods are applied to volume control device as shown in Figure 5 And it is corresponding with the mobile terminal 400 (Fig. 6, Fig. 7) of volume control device 300.Above-mentioned flow control methods can specifically wrap Include following steps:
Step S110:Count the flow of the webpage consumption of the browser.
Its flow consumed is counted to the webpage opened in browser.Wherein, the webpage of statistics can be all openings Webpage, include the webpage of the webpage of front stage operation or running background.Certainly, the webpage for counting the flow of consumption can also be Part webpage in browser, such as only in the webpage of front stage operation or only in the webpage of running background;It is either certain specified Webpage, as certain webpages that user selectes either server statistics to flow consume larger webpage or server system It is counting it is possible that the webpage etc. that network is kidnapped.Specifically exist to the statistics for the flow which webpage is consumed in browser It is not limited in the embodiment of the present application.
In addition, the flow of statistics consumed, can be browser from when opening to the flow currently consumed, either In a preset time period, such as one month, the flow of consumption in one day etc. or be that the timing statistics that user specifies start to unite Meter etc..
Step S120:When the flow of the consumption is more than predetermined threshold value, the corresponding needs consumption stream of the webpage is determined In the resource of amount, meet the target resource of preset condition.
It is more than predetermined threshold value when counting on the flow consumed in webpage, shows that the flow of webpage consumption is excessive, need It controls it.Wherein, which can be the default value being arranged in browser;Can also be to be obtained from server Numerical value, the numerical value in server can be adjusted according to practical demand for control;Either user is possessed according to oneself The value of the settings such as flow;Can also be, according in flow package possessed by user residual flow and the set meal there remains Usage time, be configured, for example, residual flow 100M in customer flow set meal, the 100M can also be used 10 days, be then arranged Predetermined threshold value is 10M or is less than 10M.
In webpage, the resource of corresponding consumed flow in need.Flow in webpage is controlled, it can be to money therein The flow consumption in source is controlled, and the resource controlled is target resource.Wherein it is possible to meet the money of preset condition The target resource that source is controlled as needs.The target resource for meeting preset condition can be the use to webpage flow have compared with The resource influenced greatly, by can effectively control the control of the target resource consumption of webpage flow, which may include Useless consumption or excessive consumption.
Step S130:It abandons asking the target resource for meeting preset condition.
To meeting the target resource of preset condition, abandon asking corresponding data, to reduce the consumption of the flow in webpage. This abandons request, in the target resource of request of data, stopping request;For the target not made requests on also Resource is no longer asked.
It in the present embodiment, is counted by the flow of the consumption of the webpage to browser, to which determination is wherein flowed in time Amount consumes excessive webpage.Excessive webpage is consumed to flow to control, abandon the mesh that some of which meets preset condition again The request for marking resource is reduced to which the flow of effectively control browser consumes because flow consumes the excessive loss brought.
Second embodiment
The embodiment of the present application provides a kind of flow control methods, compared with first embodiment, in the present embodiment, and Ke Yigen It is controlled according to the determining processing mode to webpage, to agree with the practical demand for control of user.Refer to Fig. 3, this method Including:
Step S210:Count the flow of the webpage consumption of the browser.
During accessing webpage, the flow that can be consumed to webpage counts user, which can be by clear Device kernel of looking at is realized.The flow of the webpage consumption of statistics includes the flow of webpage autophage and the stream of resource data consumption Amount, the resource be the corresponding resource for needing consumed flow of webpage, such as picture, CSS style sheet, javascript scripts, two into File processed etc., or installation kit, video file etc. from the link progress backstage download in webpage.
In a kind of specific embodiment, since the flow consumed under mobile network usually will produce network charges, As such, it can be that just being counted in a mobile network to webpage flow.Specifically, before statistical web page flow, can first sentence Whether the disconnected network currently connected is mobile network, if mobile network, then executes this step.If Wireless LAN, by Usually additional network charges are not will produce in the consumption of its flow, it can be without traffic monitoring, that is to say, that can be without Traffic statistics.
In another specific embodiment, even due in radio local network environment, the flow of browser disappears Consume it is excessive, may there is also abnormal webpages, such as by the webpage of network abduction, as such, it can be that, no matter being currently which kind of network Environment, the statistics of the flow consumed, for subsequent processing.
Step S220:When the flow of the consumption is more than predetermined threshold value, the processing mode to the webpage is determined.
Wherein, the predetermined threshold value can be after browser starts, initialization browser be used for flow control module when, Obtain the predetermined threshold value.Either, when it is to need to carry out the network environment of traffic statistics to determine current network conditions, then initially Change the module that browser is used for flow control, obtains the predetermined threshold value.Wherein, which is the stream of the consumption of single webpage The threshold value of amount.
When the flow for the consumption for counting on webpage is more than predetermined threshold value, it may be determined that carried out in which way to the webpage Processing.As an implementation, determining mode can be the processing mode for reminding user's selection to the webpage, so that User can determine the processing to webpage according to actual flow situation.
Wherein, to the prompting page for reminding the processing mode that can be selected by display user of user, such as Fig. 4 institutes Show, including processing mode can be, it is normal access, stop accessing or flow control etc. in it is one or more.
Therefore, if user is not concerned about flow and consumes excessively, the processing mode normally accessed can be selected.If receiving Processing mode is normally to access the webpage, the browser normal load webpage, and restart to count the flow of the webpage Consumption resets the traffic statistics of the webpage.Can also be each net if in addition, receiving the processing mode normally accessed The flow consumption of page all counts again.
If user's residual flow is less, worry that further consumption will produce a large amount of network charges to flow, can select pair The access of the webpage stops.If the processing mode received is to stop accessing the webpage, stopping adds the data of the webpage It carries, even if the flow that the webpage no longer consumes.
Either, user wants to continue to access webpage, but worries that flow consumes excessively, can select the place of flow control Reason mode.If the processing mode received is to carry out flow control to the webpage, to the flow of each resource in the webpage Consumption is monitored, and by controlling some of which resource, has not only controlled flow consumption, but also can continue the part to webpage Content accesses.
As another embodiment, which can be to the processing mode of webpage, it is determined whether have user to set in advance The processing mode of the processing mode or acquiescence set.The stream consumed in being arranged to webpage in the setting options of browser such as user Processing mode when amount is more than predetermined threshold value, then handled the webpage with the processing mode.Wherein, the setting opportunity of user It does not limit, can be history setting, can also be to be arranged in this opening browser, can also be that user uses identical Setting etc. of the account number when other-end logs in browser.The processing mode that may be wherein arranged can also be above-mentioned positive frequentation Ask, stop accessing or flow control etc. in it is one or more, no longer describe herein.
Step S230:If it is determined that processing mode be to the webpage carry out flow control, determine that the webpage is corresponding In the resource for needing consumed flow, meet the target resource of preset condition.
If being determined to webpage progress flow control, either, if the processing mode received is to institute according to pre-setting It states webpage and carries out flow control, then determine the target resource for meeting preset condition controlled from webpage, it is specific true Surely the target resource mode for meeting preset condition does not limit in the embodiment of the present application, the one kind or more that can be discussed further below Kind method of determination.
Optionally, in webpage, usually there is different resources, each resource to need the flow consumed different.For The smaller resource of required flow, the influence used flow is little, and for the more resource of required flow, the use to flow It is affected.In addition, for the webpage of the webpage kidnapped by network or the commercial use for having oneself, in the unwitting feelings of user The resource of backstage consumed flow under condition, and the resource that needs flow larger.Therefore, each resource in the webpage can be obtained to continue Load the flow needed;Determine that the resource that the flow needed is more than preset flow value is to meet the target resource of preset condition.Its In, which may include the resource not loaded also, continue the flow that load needs, i.e. its flow needed in total. The mode for obtaining the flow that the load of these resources needs can determine the big of resource according to each resource data head response of acquisition It is small, if resource is excessive, show that it continues to load that required flow is more, then provides using the resource as the target for meeting preset condition Source.In addition, the resource can also be to have had the resource that is loaded of part, obtains it and continue the flow that load needs and obtain it The flow that needs in total removes the part loaded, it is also necessary to flow.The mode for obtaining the flow that the resource also needs to exists It is not limited in the embodiment of the present application, such as can be, the size of resource is determined according to its data head response, further according to having added The flow of consumption is carried, determines and continues the flow that load also needs to consumption.Wherein, preset flow value can by user setting, or It is to be obtained from server or the default value of browser, occurrence are simultaneously not construed as limiting.
Optionally, if the resource type that the type of browse request resource and server response return is not met, having very much can Energy browse request is a resource for needing flow smaller, and what server returned is the money for needing flow larger Source, for example, the resource of web-page requests is picture, and what server returned is the larger application program installation kit of required flow, with Malice consumption customer flow.Therefore, resource that can be different from server return type using request type presets item as satisfaction The target resource of part.Specifically, can judge that the type that the type that each resource is asked to server is returned with server is It is no consistent;If inconsistent, determine that the resource is to meet the target resource of preset condition.
Optionally, in various resources, the flow that some resources need is smaller, the flow needed such as text, some resources It is more, such as video, cardon, it therefore, can be using the resource of certain types for needing flow more as meeting preset condition Target resource.That is, it may be determined that the resource of preset kind is to meet the target resource of preset condition, the preset kind For the resource type for needing flow more, as one or more in picture, video and/or audio, specially which type exists It is not limited in the embodiment of the present application.
Optionally, in various resources, the resource of some types is important, and the resource significance of some types compared with It is low.Therefore, different resource types can be divided into different ranks, determined to meet according to the severity level of resource type and be preset The target resource of condition.Wherein, the low type of rank is as the target resource for meeting preset condition.For example, it is divided into two ranks, Using wherein lower rank as the rank for meeting preset condition;For another example, be divided into three ranks, using wherein minimum rank as Meet the rank of preset condition, the flow of consumption is more than a certain preset value again if detecting, can be again using secondary low level as completely How the target resource etc. of sufficient preset condition specifically determines the target resource for meeting preset condition in the application reality according to rank It applies in example and does not limit.
Optionally, if resource has been consumed compared with various flow in webpage, being further continued for load resource may cause flow consumption super Go out user's acceptable range.As such, it can be that when the flow that resource has consumed in the webpage reaches a preset value, The resource of completion is not loaded using in the webpage then as the target resource for meeting preset condition.
Step S240:It abandons asking the target resource for meeting preset condition.
When determining the target resource for meeting preset condition, abandon asking its data from server, then in webpage, these mesh Mark resource is not counted further according to load.
Optionally, if carrying out flow control to webpage, possible part resource can not load, the corresponding text of this part resource Part can not then be shown, such as abandon the request to certain big pictures (one tens), can save many flows, but band The effect come exactly these pictures in webpage can not be shown.It may influence the usage experience of user.It is, therefore, possible to provide closing The setting of flow control is closed, user can close the control function to flow in the setting of browser.
In addition, in the embodiment of the present application, when monitoring that the flow of webpage consumption is more than predetermined threshold value, carrying out flow Control can also be all webpages in browser.It is preset that is, determining to meet from all webpages that browser is opened The target resource of condition abandons the request of data to determining target resource from server.Specific control process may refer to The control for the webpage for being more than predetermined threshold value is stated to the flow of consumption, and details are not described herein.
In addition, in the discharge process of the consumption of statistical web page, if the flow for counting on the consumption of webpage is more than default Threshold value can also report warning message to server, allow server to the flow of consumption be more than predetermined threshold value webpage into Row statistics, facilitates follow-up personnel to carry out page check and detailed analysis, such as analyze whether the webpage has exception, is such as implanted into wide It accuses, download file etc. from the background in the case that user is unwitting.
Optionally, no matter under which kind of network environment, such as mobile data network or WLAN, if browse request The resource type that returns of resource type and server it is inconsistent, then the resource exists abnormal, may consume compared with various flow, shadow Ring the network performance of browser.Therefore, no matter under which kind of network environment, the solicited message of resource can be monitored automatically, when clear When the resource type that the type of device of looking at request resource and server response return is not met, then the data for actively abandoning the resource are rung It answers, interruption is contacted with server, to interrupt the corresponding network request of the resource, is avoided malice from consuming customer flow, is carried The performance that high browser network accesses.
Optionally, under data network, if detecting, the flow that browser consumes in total has been more than total flow threshold value, bullet Going out prompting frame reminds user to consume various flow, and user can select to stop browser access, exit browser, wait for next time again Start browser.Certainly, user can also select to continue to access to browser or turn-on flow rate controls, and pass through control Flow is controlled to the request of data of resource.Wherein, which can be set by the user, or be obtained from server.
In the embodiment of the present application, in the case where monitoring that the flow of webpage consumption is more than predetermined threshold value, however, it is determined that right The processing mode of the webpage is flow control, then determines the target resource for meeting preset condition from the webpage, abandon from service Device avoids flow from consuming the use brought excessively the request of data of determining target resource as possible to reduce the consumption of webpage flow It loses at family.
By method provided by the embodiments of the present application, the data in all pages and the page are carried out using browser kernel Statistical monitor can monitor the flow of browser consumption in real time, excessive to flow can carry out reminding user or optimize net Page load data achieve the purpose that save flow, and user's warning information and traffic management can be accurately supplied to control in real time, Flow malice caused by kidnapping using network can also be reduced to consume, reach and improve certain commercial value purposes, damage user benefit Behavior, effectively reduce user loss, improve the performance of browser access webpage.
Also, different loading schemes may be used in different network environments.If for example, situation of the user in mobile network Lower access webpage, browser kernel can count the flow consumed in total on the webpage, when flow has been more than certain numerical value, can unite Meter prompting frame prompt user has consumed how many flow, and can be selected to carry out traffic management according to user, for subsequent Whether some resources also need to carry out loaded and displayed, and backstage is downloaded or abnormal resource access can accomplish monitoring control System.The flow that browser consumes in total can also be counted simultaneously, whether reminder application needs handover network environment or continue to visit It asks, avoids the flow of user maliciously to be consumed in great degree in this way, damage the interests of user.If in WLAN Webpage is accessed under situation, control can not be monitored to flow, either, request type and server to browser return Return whether type is unanimously monitored.
3rd embodiment
The embodiment of the present application provides a kind of volume control device 300, is applied to the browser of mobile terminal.Refer to figure 5, which includes:Flow statistical module 310, the flow that the webpage for counting the browser consumes.Resource determines mould Block 320, for when the flow of the consumption is more than predetermined threshold value, determining the corresponding resource for needing consumed flow of the webpage In, meet the target resource of preset condition.Resource processing module 330 asks the target for meeting preset condition for abandoning Resource.
Optionally, resource determination module 320 may include flow cell, continue for obtaining each resource in the webpage Load the flow needed;Resource determination unit, for determining that it is default to meet that the flow needed is more than the resource of preset flow value The target resource of condition.
Optionally, resource determination module 320 may include judging unit, for judging that each resource is asked to server The type that returns of type and server it is whether consistent.Resource determination unit, for determining the type asked to server and clothes The resource for the Type-Inconsistencies that business device returns is to meet the target resource of preset condition.
Optionally, resource determination module 320 can determine that the resource of preset kind is to meet the target resource of preset condition, The preset kind includes:Picture, video and/or audio.
Further, the embodiment of the present application can also include judgment module, for judge the network currently connected whether be Mobile network, if so, flow statistical module 310 is used to count the flow when the consumption of front opening webpage.
Further, the embodiment of the present application can also include reminding module, for reminding user that selection is to the webpage Processing mode.
If the processing mode received is to carry out flow control to the webpage, resource determination module 320 determines the net In the corresponding resource for needing consumed flow of page, meet the target resource of preset condition.
If the processing mode received is to stop accessing the webpage, resource processing module 330 can be used for stopping to institute State the data load of webpage.
If the processing mode received is normally to access the webpage, flow statistical module 310 restarts described in statistics The flow of webpage consumes.
Fourth embodiment
Referring to Fig. 6, based on above-mentioned flow control methods and device, the embodiment of the present application also provides a kind of movement Terminal 400.As shown in fig. 6, the mobile terminal 400 includes display screen 120, memory 104 and processor 102, the display screen 120 and the memory 104 be couple to the processor 102, the display screen 120 is for showing web page contents, the storage 104 store instruction of device, when described instruction is executed by the processor 102, the processor 102 executes above-mentioned first embodiment And the method described in second embodiment.
Specifically, as shown in fig. 7, the mobile terminal 400 may include electronic body portion 10, the electronic body portion 10 is wrapped Include shell 12 and the display screen being arranged on the shell 12 120.Metal, such as steel, aluminium alloy system can be used in the shell 12 At.In the present embodiment, the display screen 120 generally includes display panel 111, may also comprise for responding to the display panel 111 carry out the circuit etc. of touch control operation.The display panel 111 can be a liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, the display panel 111 is a touch screen 109 simultaneously.Webpage in the present embodiment Content can be shown in the display screen 120.
Please refer to Fig. 8, in actual application scenarios, the mobile terminal 400 can be used as intelligent mobile phone terminal into It exercises and uses, the electronic body portion 10 also typically includes one or more (only showing one in figure) processors in this case 102, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118, power module 122.It will appreciated by the skilled person that structure shown in Fig. 8 is only to illustrate, not to described The structure in electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include than shown in Fig. 8 more or more Few component, or with the correspondence different from shown in Fig. 8.
It will appreciated by the skilled person that for the processor 102, every other component belongs to It is coupled by multiple Peripheral Interfaces 124 between peripheral hardware, the processor 102 and these peripheral hardwares.The Peripheral Interface 124 can Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described Detached in Peripheral Interface 124, and be integrated in the processor 102 or corresponding peripheral hardware in.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, to perform various functions application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or the display screen 120.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication And combinations thereof.
The RF modules 106 are used to receive and transmit electromagnetic wave, realize the mutual conversion of electromagnetic wave and electric signal, to It is communicated with communication network or other equipment.The RF modules 106 may include various existing for executing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The RF modules 106 can be carried out with various networks such as internet, intranet, wireless network Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless LAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Voicefrequency circuit 110, loud speaker 101, microphone 103, microphone 105 provide user and the electronic body portion jointly Audio interface between 10 or described display screens 120.
The setting of the sensor 114 is in the electronic body portion 10 or in the display screen 120, the sensor 114 Example include but is not limited to:Acceleration transducer 114F, gyroscope 114G, magnetometer 114H and other sensors.
In the present embodiment, the input module 118 may include being arranged the touch screen 109 on the display screen 120, The touch screen 109 collect user on it or neighbouring touch operation (for example user is suitble to using finger, stylus etc. are any Object or attachment operation on the touch screen 109 or near the touch screen 109), it is hereby achieved that user Touch gestures, and corresponding attachment device is driven according to a pre-set procedure, therefore, user can pass through touching in display screen Control operation selected target region.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller.Wherein, institute The touch orientation of touch detecting apparatus detection user is stated, and detects the signal that touch operation is brought, transmits a signal to described touch Touch controller;The touch controller receives touch information from the touch detecting apparatus, and the touch information is converted into Contact coordinate, then give the processor 102, and order that the processor 102 is sent can be received and executed.In addition, The touch detection that the multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize the touch screen 109 may be used Function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include other inputs Equipment, such as button 107.The button 107 for example may include the character keys for inputting character, and for triggering control work( The control button of energy.The example of the control button includes " returning to main screen " button, on/off button etc..
The information and the electronics sheet that the display screen 120 is used to show information input by user, is supplied to user The various graphical user interface in body portion 10, these graphical user interface can be by figure, text, icon, number, video and Qi Ren Meaning combines to constitute, and such as shows the webpage information of browser.In an example, the touch screen 109 may be disposed at described aobvious Show on panel 111 to constitute an entirety with the display panel 111.
The power module 122 is used to provide supply of electric power to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other and electronic body portion 10 are described aobvious The generation, management of electric power and the relevant component of distribution in display screen 120.
The mobile terminal 400 further includes locator 119, and the locator 119 is for determining 400 institute of the mobile terminal The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the mobile terminal 400 using positioning service, The positioning service, it should be understood that the location information of the mobile terminal 400 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology of the position of positioning object or service.
It should be understood that above-mentioned mobile terminal 400 is not limited to intelligent mobile phone terminal, should refer to can move The computer equipment used in dynamic.Specifically, mobile terminal 400, refers to the mobile computer for being equipped with intelligent operating system Equipment, mobile terminal 400 include but not limited to smart mobile phone, smartwatch, tablet computer, etc..
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description See the part explanation of embodiment of the method.For arbitrary processing mode described in embodiment of the method, in device reality It applies in example and no longer can be one by one repeated in device embodiment by corresponding processing modules implement.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (mobile terminal), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.In addition, in each embodiment of the application In each functional unit can be integrated in a processing module, can also be that each unit physically exists alone, can also two A or more than two units are integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product sale in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of application Type.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding:It still can be with Technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;And These modifications or replacements, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (11)

1. a kind of flow control methods, which is characterized in that it is applied to the browser of mobile terminal, the method includes:
Count the flow of the webpage consumption of the browser;
When the flow of the consumption is more than predetermined threshold value, determine in the corresponding resource for needing consumed flow of the webpage, it is full The target resource of sufficient preset condition;
It abandons asking the target resource for meeting preset condition.
2. according to the method described in claim 1, it is characterized in that, the corresponding consumed flow that needs of the determination webpage In resource, meet the target resource of preset condition, including:
It obtains each resource in the webpage and continues the flow that load needs;
Determine that the resource that the flow needed is more than preset flow value is to meet the target resource of preset condition.
3. according to the method described in claim 1, it is characterized in that, the corresponding consumed flow that needs of the determination webpage In resource, meet the target resource of preset condition, including:
Judge whether the type that type that each resource is asked to server and server return is consistent;
If inconsistent, determine that the resource is to meet the target resource of preset condition.
4. according to the method described in claim 1, it is characterized in that, the corresponding consumed flow that needs of the determination webpage In resource, meet the target resource of preset condition, including:
Determine that the resource of preset kind is to meet the target resource of preset condition, the preset kind includes:Picture, video and/ Or it is one or more in audio.
5. according to the method described in claim 1, it is characterized in that, the flow of the webpage consumption of the statistics browser it Before, further include:
Judge whether the network currently connected is mobile network,
If so, the step of executing the flow of the webpage consumption of the statistics browser.
6. method according to any one of claims 1 to 5, which is characterized in that the corresponding needs of the determination webpage In the resource of consumed flow, before meeting the target resource of preset condition, further include:
Remind processing mode of user's selection to the webpage;
If the processing mode received is to carry out flow control to the webpage, the corresponding needs of the determination webpage are executed In the resource of consumed flow, the step of meeting the target resource of preset condition.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
If the processing mode received is to stop accessing the webpage, stop loading the data of the webpage.
8. according to the method described in claim 6, it is characterized in that, the method further includes:
If the processing mode received is normally to access the webpage, restart the flow consumption for counting the webpage.
9. a kind of volume control device, which is characterized in that be applied to browser, described device includes:
Flow statistical module, the flow that the webpage for counting the browser consumes;
Resource determination module, for when the flow of the consumption is more than predetermined threshold value, determining that the corresponding needs of the webpage disappear It consumes in the resource of flow, meets the target resource of preset condition;
Resource processing module asks the target resource for meeting preset condition for abandoning.
10. a kind of mobile terminal, which is characterized in that including display screen, memory and processor, the display screen and the storage Device is couple to the processor, and the display screen is for showing web page contents, the memory store instruction, when described instruction by The processor 1 to 8 any one of them method of processor perform claim requirement when executing.
11. a kind of computer readable storage medium for the program code that can perform with processor, which is characterized in that described program Code makes the processor perform claim require 1 to 8 any one of them method.
CN201810420762.5A 2018-05-04 2018-05-04 Flow control methods, device and mobile terminal Active CN108768870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810420762.5A CN108768870B (en) 2018-05-04 2018-05-04 Flow control methods, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810420762.5A CN108768870B (en) 2018-05-04 2018-05-04 Flow control methods, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108768870A true CN108768870A (en) 2018-11-06
CN108768870B CN108768870B (en) 2019-09-10

Family

ID=64009791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810420762.5A Active CN108768870B (en) 2018-05-04 2018-05-04 Flow control methods, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108768870B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430142A (en) * 2019-08-16 2019-11-08 北京百度网讯科技有限公司 Method and apparatus for controlling flow
CN111177603A (en) * 2019-12-13 2020-05-19 珠海格力电器股份有限公司 Traffic-saving management and control method, system, computer equipment and storage medium
CN112995046A (en) * 2019-12-12 2021-06-18 上海云盾信息技术有限公司 Content distribution network traffic management method and equipment
CN114240500A (en) * 2021-12-17 2022-03-25 中国电信股份有限公司 Inhibition type user identification method, inhibition type user identification device, inhibition type user identification medium and electronic equipment
WO2022194107A1 (en) * 2021-03-18 2022-09-22 花瓣云科技有限公司 Webpage display method, device, and system
WO2022252882A1 (en) * 2021-06-02 2022-12-08 Oppo广东移动通信有限公司 Anti-hijacking method and apparatus for browser webpage, and electronic device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815124A (en) * 2010-03-12 2010-08-25 华为终端有限公司 Webpage browsing method, mobile terminal and network equipment
CN102186190A (en) * 2011-04-29 2011-09-14 深圳市五巨科技有限公司 Mobile terminal network traffic counting method and device
CN103248756A (en) * 2013-03-28 2013-08-14 广东欧珀移动通信有限公司 Method for switching internet browsing modes according to surplus flow of mobile phone
CN103326957A (en) * 2013-05-23 2013-09-25 北京奇虎科技有限公司 Browser and method for controlling flow of browser
CN105848290A (en) * 2016-05-20 2016-08-10 青岛海信移动通信技术股份有限公司 Traffic reminding method, terminal and server
US20160286005A1 (en) * 2015-03-25 2016-09-29 Cocoon Data Holdings Limited Browser system and method
CN106130919A (en) * 2016-06-13 2016-11-16 努比亚技术有限公司 A kind of volume control device, method and mobile terminal
US20160364750A1 (en) * 2015-06-12 2016-12-15 Comscore, Inc. Fraudulent traffic detection and estimation
CN106506401A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of flow managing method and mobile terminal
CN106658548A (en) * 2015-10-30 2017-05-10 中兴通讯股份有限公司 Data flow control method and apparatus
CN106991150A (en) * 2017-03-28 2017-07-28 维沃移动通信有限公司 The display methods and mobile terminal of a kind of web data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815124A (en) * 2010-03-12 2010-08-25 华为终端有限公司 Webpage browsing method, mobile terminal and network equipment
CN102186190A (en) * 2011-04-29 2011-09-14 深圳市五巨科技有限公司 Mobile terminal network traffic counting method and device
CN103248756A (en) * 2013-03-28 2013-08-14 广东欧珀移动通信有限公司 Method for switching internet browsing modes according to surplus flow of mobile phone
CN103326957A (en) * 2013-05-23 2013-09-25 北京奇虎科技有限公司 Browser and method for controlling flow of browser
US20160286005A1 (en) * 2015-03-25 2016-09-29 Cocoon Data Holdings Limited Browser system and method
US20160364750A1 (en) * 2015-06-12 2016-12-15 Comscore, Inc. Fraudulent traffic detection and estimation
CN106658548A (en) * 2015-10-30 2017-05-10 中兴通讯股份有限公司 Data flow control method and apparatus
CN105848290A (en) * 2016-05-20 2016-08-10 青岛海信移动通信技术股份有限公司 Traffic reminding method, terminal and server
CN106130919A (en) * 2016-06-13 2016-11-16 努比亚技术有限公司 A kind of volume control device, method and mobile terminal
CN106506401A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of flow managing method and mobile terminal
CN106991150A (en) * 2017-03-28 2017-07-28 维沃移动通信有限公司 The display methods and mobile terminal of a kind of web data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430142A (en) * 2019-08-16 2019-11-08 北京百度网讯科技有限公司 Method and apparatus for controlling flow
CN110430142B (en) * 2019-08-16 2023-07-18 北京百度网讯科技有限公司 Method and device for controlling flow
CN112995046A (en) * 2019-12-12 2021-06-18 上海云盾信息技术有限公司 Content distribution network traffic management method and equipment
CN111177603A (en) * 2019-12-13 2020-05-19 珠海格力电器股份有限公司 Traffic-saving management and control method, system, computer equipment and storage medium
WO2022194107A1 (en) * 2021-03-18 2022-09-22 花瓣云科技有限公司 Webpage display method, device, and system
WO2022252882A1 (en) * 2021-06-02 2022-12-08 Oppo广东移动通信有限公司 Anti-hijacking method and apparatus for browser webpage, and electronic device and storage medium
CN114240500A (en) * 2021-12-17 2022-03-25 中国电信股份有限公司 Inhibition type user identification method, inhibition type user identification device, inhibition type user identification medium and electronic equipment

Also Published As

Publication number Publication date
CN108768870B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN108768870B (en) Flow control methods, device and mobile terminal
US11099900B2 (en) Memory reclamation method and apparatus
CN106332307B (en) Method for accessing application program to network and mobile terminal
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108647050A (en) Application program launching method, device and mobile terminal
CN108964838A (en) transmission rate adjusting method, device and electronic device
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN108446211A (en) Browser exception collection method, device, mobile terminal and storage medium
CN108536504A (en) page display method, device, mobile terminal and storage medium
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN108924908A (en) WiFi scan method, device and electronic device
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN111405112A (en) Message prompting method and electronic equipment
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN108494851B (en) Application program recommended method, device and server
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN109978541A (en) Method of mobile payment, terminal and computer readable storage medium
CN108667962A (en) Display methods, device, mobile terminal and storage medium
CN108882335A (en) Method for connecting network, device and electronic device
CN108632822A (en) Detection method, device and the mobile terminal of wireless access point
CN111836300B (en) Network switching method and communication terminal
CN108494907A (en) mobile terminal screen control method, device, mobile terminal and storage medium
CN110221735B (en) Icon processing method and device and mobile terminal
CN108536508B (en) Interface processing method and device and mobile terminal
CN108964839A (en) transmission rate adjusting method, device and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant