| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 cc::CompositorFrameMetadata frame_metadata); | 52 cc::CompositorFrameMetadata frame_metadata); |
| 53 void DidAttachInterstitialPage(); | 53 void DidAttachInterstitialPage(); |
| 54 void DidDetachInterstitialPage(); | 54 void DidDetachInterstitialPage(); |
| 55 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } | 55 bool screencast_enabled() const { return enabled_ && screencast_enabled_; } |
| 56 | 56 |
| 57 Response Enable() override; | 57 Response Enable() override; |
| 58 Response Disable() override; | 58 Response Disable() override; |
| 59 | 59 |
| 60 Response Reload(Maybe<bool> bypassCache, | 60 Response Reload(Maybe<bool> bypassCache, |
| 61 Maybe<std::string> script_to_evaluate_on_load) override; | 61 Maybe<std::string> script_to_evaluate_on_load) override; |
| 62 Response Navigate(const std::string& url, Page::FrameId* frame_id) override; | 62 Response Navigate(const std::string& url, |
| 63 Maybe<std::string> referrer, |
| 64 Page::FrameId* frame_id) override; |
| 63 Response StopLoading() override; | 65 Response StopLoading() override; |
| 64 | 66 |
| 65 using NavigationEntries = protocol::Array<Page::NavigationEntry>; | 67 using NavigationEntries = protocol::Array<Page::NavigationEntry>; |
| 66 Response GetNavigationHistory( | 68 Response GetNavigationHistory( |
| 67 int* current_index, | 69 int* current_index, |
| 68 std::unique_ptr<NavigationEntries>* entries) override; | 70 std::unique_ptr<NavigationEntries>* entries) override; |
| 69 Response NavigateToHistoryEntry(int entry_id) override; | 71 Response NavigateToHistoryEntry(int entry_id) override; |
| 70 | 72 |
| 71 void CaptureScreenshot( | 73 void CaptureScreenshot( |
| 72 Maybe<std::string> format, | 74 Maybe<std::string> format, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 NotificationRegistrar registrar_; | 151 NotificationRegistrar registrar_; |
| 150 base::WeakPtrFactory<PageHandler> weak_factory_; | 152 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 151 | 153 |
| 152 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 154 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 } // namespace protocol | 157 } // namespace protocol |
| 156 } // namespace content | 158 } // namespace content |
| 157 | 159 |
| 158 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 160 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |