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

Side by Side Diff: chrome/browser/devtools/chrome_devtools_manager_delegate.h

Issue 342473004: DevTools: make network conditions emulation scoped (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/devtools/chrome_devtools_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 private: 30 private:
31 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; 31 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
32 bool devtools_callback_registered_; 32 bool devtools_callback_registered_;
33 void EnsureDevtoolsCallbackRegistered(); 33 void EnsureDevtoolsCallbackRegistered();
34 34
35 Profile* GetProfile(content::DevToolsAgentHost* agent_host); 35 Profile* GetProfile(content::DevToolsAgentHost* agent_host);
36 36
37 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions( 37 scoped_ptr<DevToolsProtocol::Response> EmulateNetworkConditions(
38 content::DevToolsAgentHost* agent_host, 38 content::DevToolsAgentHost* agent_host,
39 DevToolsProtocol::Command* command); 39 DevToolsProtocol::Command* command);
40 std::string emulate_network_conditions_client_id_;
41 40
42 void UpdateNetworkState( 41 void UpdateNetworkState(
43 content::DevToolsAgentHost* agent_host, 42 content::DevToolsAgentHost* agent_host,
44 const scoped_refptr<DevToolsNetworkConditions> conditions); 43 const scoped_refptr<DevToolsNetworkConditions> conditions);
45 44
46 void OnDevToolsStateChanged(content::DevToolsAgentHost* agent_host, 45 void OnDevToolsStateChanged(content::DevToolsAgentHost* agent_host,
47 bool attached); 46 bool attached);
48 47
49 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate); 48 DISALLOW_COPY_AND_ASSIGN(ChromeDevToolsManagerDelegate);
50 }; 49 };
51 50
52 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_ 51 #endif // CHROME_BROWSER_DEVTOOLS_CHROME_DEVTOOLS_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/chrome_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698