| OLD | NEW | 
|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 
| 7 | 7 | 
| 8 #include <map> | 8 #include <map> | 
| 9 #include <memory> | 9 #include <memory> | 
| 10 #include <string> | 10 #include <string> | 
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55       const base::DictionaryValue* params); | 55       const base::DictionaryValue* params); | 
| 56   std::unique_ptr<base::DictionaryValue> CloseTarget( | 56   std::unique_ptr<base::DictionaryValue> CloseTarget( | 
| 57       int command_id, | 57       int command_id, | 
| 58       const base::DictionaryValue* params); | 58       const base::DictionaryValue* params); | 
| 59   std::unique_ptr<base::DictionaryValue> CreateBrowserContext( | 59   std::unique_ptr<base::DictionaryValue> CreateBrowserContext( | 
| 60       int command_id, | 60       int command_id, | 
| 61       const base::DictionaryValue* params); | 61       const base::DictionaryValue* params); | 
| 62   std::unique_ptr<base::DictionaryValue> DisposeBrowserContext( | 62   std::unique_ptr<base::DictionaryValue> DisposeBrowserContext( | 
| 63       int command_id, | 63       int command_id, | 
| 64       const base::DictionaryValue* params); | 64       const base::DictionaryValue* params); | 
|  | 65   std::unique_ptr<base::DictionaryValue> SetDownloadBehavior( | 
|  | 66       int command_id, | 
|  | 67       const base::DictionaryValue* params); | 
|  | 68   std::unique_ptr<base::DictionaryValue> SetDownloadDirectory( | 
|  | 69       int command_id, | 
|  | 70       const base::DictionaryValue* params); | 
|  | 71 | 
| 65   void PrintToPDF(content::DevToolsAgentHost* agent_host, | 72   void PrintToPDF(content::DevToolsAgentHost* agent_host, | 
| 66                   int command_id, | 73                   int command_id, | 
| 67                   const base::DictionaryValue* params, | 74                   const base::DictionaryValue* params, | 
| 68                   const CommandCallback& callback); | 75                   const CommandCallback& callback); | 
| 69 | 76 | 
| 70   base::WeakPtr<HeadlessBrowserImpl> browser_; | 77   base::WeakPtr<HeadlessBrowserImpl> browser_; | 
| 71 | 78 | 
| 72   using CommandMemberCallback = | 79   using CommandMemberCallback = | 
| 73       base::Callback<std::unique_ptr<base::DictionaryValue>( | 80       base::Callback<std::unique_ptr<base::DictionaryValue>( | 
| 74           int command_id, | 81           int command_id, | 
| 75           const base::DictionaryValue* params)>; | 82           const base::DictionaryValue* params)>; | 
| 76   using AsyncCommandMemberCallback = | 83   using AsyncCommandMemberCallback = | 
| 77       base::Callback<void(content::DevToolsAgentHost* agent_host, | 84       base::Callback<void(content::DevToolsAgentHost* agent_host, | 
| 78                           int command_id, | 85                           int command_id, | 
| 79                           const base::DictionaryValue* params, | 86                           const base::DictionaryValue* params, | 
| 80                           const CommandCallback& callback)>; | 87                           const CommandCallback& callback)>; | 
| 81   std::map<std::string, CommandMemberCallback> command_map_; | 88   std::map<std::string, CommandMemberCallback> command_map_; | 
| 82   std::map<std::string, AsyncCommandMemberCallback> async_command_map_; | 89   std::map<std::string, AsyncCommandMemberCallback> async_command_map_; | 
| 83 }; | 90 }; | 
| 84 | 91 | 
| 85 }  // namespace headless | 92 }  // namespace headless | 
| 86 | 93 | 
| 87 #endif  // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 94 #endif  // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_MANAGER_DELEGATE_H_ | 
| OLD | NEW | 
|---|