OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 60 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
61 void OnWebUIJavaScript(const base::string16& javascript); | 61 void OnWebUIJavaScript(const base::string16& javascript); |
62 #endif | 62 #endif |
63 #if defined(ENABLE_EXTENSIONS) | 63 #if defined(ENABLE_EXTENSIONS) |
64 void OnSetVisuallyDeemphasized(bool deemphasized); | 64 void OnSetVisuallyDeemphasized(bool deemphasized); |
65 #endif | 65 #endif |
66 #if defined(OS_ANDROID) | 66 #if defined(OS_ANDROID) |
67 void OnUpdateTopControlsState(content::TopControlsState constraints, | 67 void OnUpdateTopControlsState(content::TopControlsState constraints, |
68 content::TopControlsState current, | 68 content::TopControlsState current, |
69 bool animate); | 69 bool animate); |
70 void OnRetrieveWebappInformation(const GURL& expected_url); | |
71 void OnRetrieveMetaTagContent(const GURL& expected_url, | 70 void OnRetrieveMetaTagContent(const GURL& expected_url, |
72 const std::string tag_name); | 71 const std::string tag_name); |
73 #endif | 72 #endif |
| 73 void OnGetWebApplicationInfo(); |
74 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 74 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
75 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features); | 75 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features); |
76 | 76 |
77 void CapturePageInfoLater(bool preliminary_capture, | 77 void CapturePageInfoLater(bool preliminary_capture, |
78 base::TimeDelta delay); | 78 base::TimeDelta delay); |
79 | 79 |
80 // Captures the thumbnail and text contents for indexing for the given load | 80 // Captures the thumbnail and text contents for indexing for the given load |
81 // ID. Kicks off analysis of the captured text. | 81 // ID. Kicks off analysis of the captured text. |
82 void CapturePageInfo(bool preliminary_capture); | 82 void CapturePageInfo(bool preliminary_capture); |
83 | 83 |
(...skipping 20 matching lines...) Expand all Loading... |
104 // A color page overlay when visually de-emaphasized. | 104 // A color page overlay when visually de-emaphasized. |
105 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 105 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
106 | 106 |
107 // Used to delay calling CapturePageInfo. | 107 // Used to delay calling CapturePageInfo. |
108 base::Timer capture_timer_; | 108 base::Timer capture_timer_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 110 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 113 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |