OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void OnHandleMessageFromExternalHost(const std::string& message, | 111 void OnHandleMessageFromExternalHost(const std::string& message, |
112 const std::string& origin, | 112 const std::string& origin, |
113 const std::string& target); | 113 const std::string& target); |
114 void OnJavaScriptStressTestControl(int cmd, int param); | 114 void OnJavaScriptStressTestControl(int cmd, int param); |
115 void OnDownloadFavicon(int id, const GURL& image_url, int image_size); | 115 void OnDownloadFavicon(int id, const GURL& image_url, int image_size); |
116 void OnNavigate(const ViewMsg_Navigate_Params& params); | 116 void OnNavigate(const ViewMsg_Navigate_Params& params); |
117 void OnSetIsPrerendering(bool is_prerendering); | 117 void OnSetIsPrerendering(bool is_prerendering); |
118 void OnSetAllowDisplayingInsecureContent(bool allow); | 118 void OnSetAllowDisplayingInsecureContent(bool allow); |
119 void OnSetAllowRunningInsecureContent(bool allow); | 119 void OnSetAllowRunningInsecureContent(bool allow); |
120 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 120 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
| 121 void OnStartFrameSniffer(const string16& frame_name); |
121 | 122 |
122 // Captures the thumbnail and text contents for indexing for the given load | 123 // Captures the thumbnail and text contents for indexing for the given load |
123 // ID. If the view's load ID is different than the parameter, this call is | 124 // ID. If the view's load ID is different than the parameter, this call is |
124 // a NOP. Typically called on a timer, so the load ID may have changed in the | 125 // a NOP. Typically called on a timer, so the load ID may have changed in the |
125 // meantime. | 126 // meantime. |
126 void CapturePageInfo(int load_id, bool preliminary_capture); | 127 void CapturePageInfo(int load_id, bool preliminary_capture); |
127 | 128 |
128 // Retrieves the text from the given frame contents, the page text up to the | 129 // Retrieves the text from the given frame contents, the page text up to the |
129 // maximum amount kMaxIndexChars will be placed into the given buffer. | 130 // maximum amount kMaxIndexChars will be placed into the given buffer. |
130 void CaptureText(WebKit::WebFrame* frame, string16* contents); | 131 void CaptureText(WebKit::WebFrame* frame, string16* contents); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 ScopedRunnableMethodFactory<ChromeRenderViewObserver> | 197 ScopedRunnableMethodFactory<ChromeRenderViewObserver> |
197 page_info_method_factory_; | 198 page_info_method_factory_; |
198 | 199 |
199 // ImageResourceFetchers schedule via DownloadImage. | 200 // ImageResourceFetchers schedule via DownloadImage. |
200 RenderView::ImageResourceFetcherList image_fetchers_; | 201 RenderView::ImageResourceFetcherList image_fetchers_; |
201 | 202 |
202 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 203 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
203 }; | 204 }; |
204 | 205 |
205 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 206 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |