OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual Status IsPendingNavigation( | 82 virtual Status IsPendingNavigation( |
83 const std::string& frame_id, bool* is_pending) OVERRIDE; | 83 const std::string& frame_id, bool* is_pending) OVERRIDE; |
84 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() OVERRIDE; | 84 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() OVERRIDE; |
85 virtual Status OverrideGeolocation(const Geoposition& geoposition) OVERRIDE; | 85 virtual Status OverrideGeolocation(const Geoposition& geoposition) OVERRIDE; |
86 virtual Status CaptureScreenshot(std::string* screenshot) OVERRIDE; | 86 virtual Status CaptureScreenshot(std::string* screenshot) OVERRIDE; |
87 virtual Status SetFileInputFiles( | 87 virtual Status SetFileInputFiles( |
88 const std::string& frame, | 88 const std::string& frame, |
89 const base::DictionaryValue& element, | 89 const base::DictionaryValue& element, |
90 const std::vector<base::FilePath>& files) OVERRIDE; | 90 const std::vector<base::FilePath>& files) OVERRIDE; |
91 virtual Status TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) OVERRIDE; | 91 virtual Status TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) OVERRIDE; |
| 92 virtual Status StartProfile() OVERRIDE; |
| 93 virtual Status EndProfile(scoped_ptr<base::Value>* profile_data) OVERRIDE; |
92 | 94 |
93 private: | 95 private: |
94 Status CallAsyncFunctionInternal(const std::string& frame, | 96 Status CallAsyncFunctionInternal(const std::string& frame, |
95 const std::string& function, | 97 const std::string& function, |
96 const base::ListValue& args, | 98 const base::ListValue& args, |
97 bool is_user_supplied, | 99 bool is_user_supplied, |
98 const base::TimeDelta& timeout, | 100 const base::TimeDelta& timeout, |
99 scoped_ptr<base::Value>* result); | 101 scoped_ptr<base::Value>* result); |
100 Status IsNotPendingNavigation(const std::string& frame_id, | 102 Status IsNotPendingNavigation(const std::string& frame_id, |
101 bool* is_not_pending); | 103 bool* is_not_pending); |
| 104 |
| 105 Status InitProfileInternal(); |
| 106 Status StopProfileInternal(); |
| 107 |
102 std::string id_; | 108 std::string id_; |
103 const BrowserInfo* browser_info_; | 109 const BrowserInfo* browser_info_; |
104 scoped_ptr<DomTracker> dom_tracker_; | 110 scoped_ptr<DomTracker> dom_tracker_; |
105 scoped_ptr<FrameTracker> frame_tracker_; | 111 scoped_ptr<FrameTracker> frame_tracker_; |
106 scoped_ptr<NavigationTracker> navigation_tracker_; | 112 scoped_ptr<NavigationTracker> navigation_tracker_; |
107 scoped_ptr<JavaScriptDialogManager> dialog_manager_; | 113 scoped_ptr<JavaScriptDialogManager> dialog_manager_; |
108 scoped_ptr<GeolocationOverrideManager> geolocation_override_manager_; | 114 scoped_ptr<GeolocationOverrideManager> geolocation_override_manager_; |
109 scoped_ptr<HeapSnapshotTaker> heap_snapshot_taker_; | 115 scoped_ptr<HeapSnapshotTaker> heap_snapshot_taker_; |
110 scoped_ptr<DebuggerTracker> debugger_; | 116 scoped_ptr<DebuggerTracker> debugger_; |
111 scoped_ptr<DevToolsClient> client_; | 117 scoped_ptr<DevToolsClient> client_; |
(...skipping 24 matching lines...) Expand all Loading... |
136 Status GetNodeIdFromFunction(DevToolsClient* client, | 142 Status GetNodeIdFromFunction(DevToolsClient* client, |
137 int context_id, | 143 int context_id, |
138 const std::string& function, | 144 const std::string& function, |
139 const base::ListValue& args, | 145 const base::ListValue& args, |
140 bool* found_node, | 146 bool* found_node, |
141 int* node_id); | 147 int* node_id); |
142 | 148 |
143 } // namespace internal | 149 } // namespace internal |
144 | 150 |
145 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 151 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
OLD | NEW |