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> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/public/common/top_controls_state.h" | 15 #include "content/public/common/browser_controls_state.h" |
16 #include "content/public/renderer/render_view_observer.h" | 16 #include "content/public/renderer/render_view_observer.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 class ContentSettingsObserver; | 19 class ContentSettingsObserver; |
20 class SkBitmap; | 20 class SkBitmap; |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 class WebView; | 23 class WebView; |
24 struct WebWindowFeatures; | 24 struct WebWindowFeatures; |
25 } | 25 } |
(...skipping 20 matching lines...) Expand all Loading... |
46 void Navigate(const GURL& url) override; | 46 void Navigate(const GURL& url) override; |
47 void OnDestruct() override; | 47 void OnDestruct() override; |
48 | 48 |
49 #if !defined(OS_ANDROID) | 49 #if !defined(OS_ANDROID) |
50 void OnWebUIJavaScript(const base::string16& javascript); | 50 void OnWebUIJavaScript(const base::string16& javascript); |
51 #endif | 51 #endif |
52 #if defined(ENABLE_EXTENSIONS) | 52 #if defined(ENABLE_EXTENSIONS) |
53 void OnSetVisuallyDeemphasized(bool deemphasized); | 53 void OnSetVisuallyDeemphasized(bool deemphasized); |
54 #endif | 54 #endif |
55 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
56 void OnUpdateTopControlsState(content::TopControlsState constraints, | 56 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, |
57 content::TopControlsState current, | 57 content::BrowserControlsState current, |
58 bool animate); | 58 bool animate); |
59 #endif | 59 #endif |
60 void OnGetWebApplicationInfo(); | 60 void OnGetWebApplicationInfo(); |
61 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features); | 61 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features); |
62 | 62 |
63 // Determines if a host is in the strict security host set. | 63 // Determines if a host is in the strict security host set. |
64 bool IsStrictSecurityHost(const std::string& host); | 64 bool IsStrictSecurityHost(const std::string& host); |
65 | 65 |
66 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. | 66 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. |
67 std::vector<base::string16> webui_javascript_; | 67 std::vector<base::string16> webui_javascript_; |
68 | 68 |
69 // Owned by ChromeContentRendererClient and outlive us. | 69 // Owned by ChromeContentRendererClient and outlive us. |
70 web_cache::WebCacheImpl* web_cache_impl_; | 70 web_cache::WebCacheImpl* web_cache_impl_; |
71 | 71 |
72 // true if webview is overlayed with grey color. | 72 // true if webview is overlayed with grey color. |
73 bool webview_visually_deemphasized_; | 73 bool webview_visually_deemphasized_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 75 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 78 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |