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

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

Issue 1079843002: DevTools: allow storing devtools preferences on the browser side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 5 years, 8 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/devtools_embedder_message_dispatcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const std::string& headers, 59 const std::string& headers,
60 int stream_id) = 0; 60 int stream_id) = 0;
61 virtual void SearchInPath(int search_request_id, 61 virtual void SearchInPath(int search_request_id,
62 const std::string& file_system_path, 62 const std::string& file_system_path,
63 const std::string& query) = 0; 63 const std::string& query) = 0;
64 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; 64 virtual void SetWhitelistedShortcuts(const std::string& message) = 0;
65 virtual void ZoomIn() = 0; 65 virtual void ZoomIn() = 0;
66 virtual void ZoomOut() = 0; 66 virtual void ZoomOut() = 0;
67 virtual void ResetZoom() = 0; 67 virtual void ResetZoom() = 0;
68 virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; 68 virtual void SetDevicesUpdatesEnabled(bool enabled) = 0;
69 virtual void GetPreferences(const DispatchCallback& callback) = 0;
70 virtual void SetPreference(const std::string& name,
71 const std::string& value) = 0;
72 virtual void RemovePreference(const std::string& name) = 0;
73 virtual void ClearPreferences() = 0;
69 virtual void SendMessageToBrowser(const std::string& message) = 0; 74 virtual void SendMessageToBrowser(const std::string& message) = 0;
70 virtual void RecordEnumeratedHistogram(const std::string& name, 75 virtual void RecordEnumeratedHistogram(const std::string& name,
71 int sample, 76 int sample,
72 int boundary_value) = 0; 77 int boundary_value) = 0;
73 virtual void SendJsonRequest(const DispatchCallback& callback, 78 virtual void SendJsonRequest(const DispatchCallback& callback,
74 const std::string& browser_id, 79 const std::string& browser_id,
75 const std::string& url) = 0; 80 const std::string& url) = 0;
76 }; 81 };
77 82
78 using DispatchCallback = Delegate::DispatchCallback; 83 using DispatchCallback = Delegate::DispatchCallback;
79 84
80 virtual ~DevToolsEmbedderMessageDispatcher() {} 85 virtual ~DevToolsEmbedderMessageDispatcher() {}
81 virtual bool Dispatch(const DispatchCallback& callback, 86 virtual bool Dispatch(const DispatchCallback& callback,
82 const std::string& method, 87 const std::string& method,
83 const base::ListValue* params) = 0; 88 const base::ListValue* params) = 0;
84 89
85 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( 90 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend(
86 Delegate* delegate); 91 Delegate* delegate);
87 }; 92 };
88 93
89 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 94 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698