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

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

Issue 57073004: DevTools: Add support for adding folders to DevTools workspace with drag and drop (browser part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 7 years, 1 month 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 | Annotate | Revision Log
« 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 22 matching lines...) Expand all
33 virtual void SetDockSide(const std::string& side) = 0; 33 virtual void SetDockSide(const std::string& side) = 0;
34 virtual void OpenInNewTab(const std::string& url) = 0; 34 virtual void OpenInNewTab(const std::string& url) = 0;
35 virtual void SaveToFile(const std::string& url, 35 virtual void SaveToFile(const std::string& url,
36 const std::string& content, 36 const std::string& content,
37 bool save_as) = 0; 37 bool save_as) = 0;
38 virtual void AppendToFile(const std::string& url, 38 virtual void AppendToFile(const std::string& url,
39 const std::string& content) = 0; 39 const std::string& content) = 0;
40 virtual void RequestFileSystems() = 0; 40 virtual void RequestFileSystems() = 0;
41 virtual void AddFileSystem() = 0; 41 virtual void AddFileSystem() = 0;
42 virtual void RemoveFileSystem(const std::string& file_system_path) = 0; 42 virtual void RemoveFileSystem(const std::string& file_system_path) = 0;
43 virtual void UpgradeDraggedFileSystemPermissions(
44 const std::string& file_system_url) = 0;
43 virtual void IndexPath(int request_id, 45 virtual void IndexPath(int request_id,
44 const std::string& file_system_path) = 0; 46 const std::string& file_system_path) = 0;
45 virtual void StopIndexing(int request_id) = 0; 47 virtual void StopIndexing(int request_id) = 0;
46 virtual void SearchInPath(int request_id, 48 virtual void SearchInPath(int request_id,
47 const std::string& file_system_path, 49 const std::string& file_system_path,
48 const std::string& query) = 0; 50 const std::string& query) = 0;
49 }; 51 };
50 52
51 explicit DevToolsEmbedderMessageDispatcher(Delegate* delegate); 53 explicit DevToolsEmbedderMessageDispatcher(Delegate* delegate);
52 54
53 ~DevToolsEmbedderMessageDispatcher(); 55 ~DevToolsEmbedderMessageDispatcher();
54 56
55 std::string Dispatch(const std::string& method, base::ListValue* params); 57 std::string Dispatch(const std::string& method, base::ListValue* params);
56 58
57 private: 59 private:
58 typedef base::Callback<bool(const base::ListValue&)> Handler; 60 typedef base::Callback<bool(const base::ListValue&)> Handler;
59 void RegisterHandler(const std::string& method, const Handler& handler); 61 void RegisterHandler(const std::string& method, const Handler& handler);
60 62
61 typedef std::map<std::string, Handler> HandlerMap; 63 typedef std::map<std::string, Handler> HandlerMap;
62 HandlerMap handlers_; 64 HandlerMap handlers_;
63 }; 65 };
64 66
65 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 67 #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