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 30 matching lines...) Expand all Loading... |
41 void OnDestruct() override; | 41 void OnDestruct() override; |
42 | 42 |
43 #if !defined(OS_ANDROID) | 43 #if !defined(OS_ANDROID) |
44 void OnWebUIJavaScript(const base::string16& javascript); | 44 void OnWebUIJavaScript(const base::string16& javascript); |
45 #endif | 45 #endif |
46 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
47 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, | 47 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, |
48 content::BrowserControlsState current, | 48 content::BrowserControlsState current, |
49 bool animate); | 49 bool animate); |
50 #endif | 50 #endif |
51 void OnGetWebApplicationInfo(); | |
52 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features); | 51 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features); |
53 | 52 |
54 // Determines if a host is in the strict security host set. | 53 // Determines if a host is in the strict security host set. |
55 bool IsStrictSecurityHost(const std::string& host); | 54 bool IsStrictSecurityHost(const std::string& host); |
56 | 55 |
57 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. | 56 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. |
58 std::vector<base::string16> webui_javascript_; | 57 std::vector<base::string16> webui_javascript_; |
59 | 58 |
60 // Owned by ChromeContentRendererClient and outlive us. | 59 // Owned by ChromeContentRendererClient and outlive us. |
61 web_cache::WebCacheImpl* web_cache_impl_; | 60 web_cache::WebCacheImpl* web_cache_impl_; |
62 | 61 |
63 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 62 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
64 }; | 63 }; |
65 | 64 |
66 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 65 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |