OLD | NEW |
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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 Response Enable(); | 52 Response Enable(); |
53 Response Disable(); | 53 Response Disable(); |
54 | 54 |
55 Response Reload(const bool* bypassCache, | 55 Response Reload(const bool* bypassCache, |
56 const std::string* script_to_evaluate_on_load, | 56 const std::string* script_to_evaluate_on_load, |
57 const std::string* script_preprocessor = NULL); | 57 const std::string* script_preprocessor = NULL); |
58 | 58 |
59 Response Navigate(const std::string& url, FrameId* frame_id); | 59 Response Navigate(const std::string& url, FrameId* frame_id); |
60 | 60 |
| 61 Response StopLoading(); |
| 62 |
61 using NavigationEntries = std::vector<scoped_refptr<NavigationEntry>>; | 63 using NavigationEntries = std::vector<scoped_refptr<NavigationEntry>>; |
62 Response GetNavigationHistory(int* current_index, | 64 Response GetNavigationHistory(int* current_index, |
63 NavigationEntries* entries); | 65 NavigationEntries* entries); |
64 | 66 |
65 Response NavigateToHistoryEntry(int entry_id); | 67 Response NavigateToHistoryEntry(int entry_id); |
66 | 68 |
67 Response CaptureScreenshot(DevToolsCommandId command_id); | 69 Response CaptureScreenshot(DevToolsCommandId command_id); |
68 | 70 |
69 Response StartScreencast(const std::string* format, | 71 Response StartScreencast(const std::string* format, |
70 const int* quality, | 72 const int* quality, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 base::WeakPtrFactory<PageHandler> weak_factory_; | 170 base::WeakPtrFactory<PageHandler> weak_factory_; |
169 | 171 |
170 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 172 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
171 }; | 173 }; |
172 | 174 |
173 } // namespace page | 175 } // namespace page |
174 } // namespace devtools | 176 } // namespace devtools |
175 } // namespace content | 177 } // namespace content |
176 | 178 |
177 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 179 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |