Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Side by Side Diff: content/browser/devtools/protocol/network_handler.h

Issue 1039543003: [DevTools] Move network protocol handler to RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview compile Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
7 7
8 #include "content/browser/devtools/protocol/devtools_protocol_handler.h" 8 #include "content/browser/devtools/protocol/devtools_protocol_handler.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class RenderViewHost; 12 class RenderFrameHost;
13 13
14 namespace devtools { 14 namespace devtools {
15 namespace network { 15 namespace network {
16 16
17 class NetworkHandler { 17 class NetworkHandler {
18 public: 18 public:
19 typedef DevToolsProtocolClient::Response Response; 19 typedef DevToolsProtocolClient::Response Response;
20 20
21 NetworkHandler(); 21 NetworkHandler();
22 virtual ~NetworkHandler(); 22 virtual ~NetworkHandler();
23 23
24 void SetRenderViewHost(RenderViewHost* host); 24 void SetRenderFrameHost(RenderFrameHost* host);
25 25
26 Response ClearBrowserCache(); 26 Response ClearBrowserCache();
27 Response ClearBrowserCookies(); 27 Response ClearBrowserCookies();
28 Response CanEmulateNetworkConditions(bool* result); 28 Response CanEmulateNetworkConditions(bool* result);
29 29
30 Response EmulateNetworkConditions(bool offline, 30 Response EmulateNetworkConditions(bool offline,
31 double latency, 31 double latency,
32 double download_throughput, 32 double download_throughput,
33 double upload_throughput); 33 double upload_throughput);
34 34
35 private: 35 private:
36 RenderViewHost* host_; 36 RenderFrameHost* host_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); 38 DISALLOW_COPY_AND_ASSIGN(NetworkHandler);
39 }; 39 };
40 40
41 } // namespace network 41 } // namespace network
42 } // namespace devtools 42 } // namespace devtools
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ 45 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/devtools/protocol/network_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698