| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); | 38 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); |
| 39 void OnVisibilityChanged(bool visible); | 39 void OnVisibilityChanged(bool visible); |
| 40 void DidAttachInterstitialPage(); | 40 void DidAttachInterstitialPage(); |
| 41 void DidDetachInterstitialPage(); | 41 void DidDetachInterstitialPage(); |
| 42 | 42 |
| 43 Response Enable(); | 43 Response Enable(); |
| 44 Response Disable(); | 44 Response Disable(); |
| 45 | 45 |
| 46 Response Reload(const bool* ignoreCache, | 46 Response Reload(const bool* ignoreCache, |
| 47 const std::string* script_to_evaluate_on_load, | 47 const std::string* script_to_evaluate_on_load, |
| 48 const std::string* script_preprocessor); | 48 const std::string* script_preprocessor = NULL); |
| 49 | 49 |
| 50 Response Navigate(const std::string& url, FrameId* frame_id); | 50 Response Navigate(const std::string& url, FrameId* frame_id); |
| 51 | 51 |
| 52 using NavigationEntries = std::vector<scoped_refptr<NavigationEntry>>; | 52 using NavigationEntries = std::vector<scoped_refptr<NavigationEntry>>; |
| 53 Response GetNavigationHistory(int* current_index, | 53 Response GetNavigationHistory(int* current_index, |
| 54 NavigationEntries* entries); | 54 NavigationEntries* entries); |
| 55 | 55 |
| 56 Response NavigateToHistoryEntry(int entry_id); | 56 Response NavigateToHistoryEntry(int entry_id); |
| 57 | 57 |
| 58 Response SetGeolocationOverride(double* latitude, | 58 Response SetGeolocationOverride(double* latitude, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 base::WeakPtrFactory<PageHandler> weak_factory_; | 138 base::WeakPtrFactory<PageHandler> weak_factory_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 140 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace page | 143 } // namespace page |
| 144 } // namespace devtools | 144 } // namespace devtools |
| 145 } // namespace content | 145 } // namespace content |
| 146 | 146 |
| 147 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 147 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
| OLD | NEW |