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/browser_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 "extensions/features/features.h" | 17 #include "extensions/features/features.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 class ContentSettingsObserver; | |
21 class SkBitmap; | |
22 | |
23 namespace blink { | 20 namespace blink { |
24 class WebView; | |
25 struct WebWindowFeatures; | 21 struct WebWindowFeatures; |
26 } | 22 } |
27 | 23 |
28 namespace web_cache { | 24 namespace web_cache { |
29 class WebCacheImpl; | 25 class WebCacheImpl; |
30 } | 26 } |
31 | 27 |
32 // This class holds the Chrome specific parts of RenderView, and has the same | 28 // This class holds the Chrome specific parts of RenderView, and has the same |
33 // lifetime. | 29 // lifetime. |
34 class ChromeRenderViewObserver : public content::RenderViewObserver { | 30 class ChromeRenderViewObserver : public content::RenderViewObserver { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Owned by ChromeContentRendererClient and outlive us. | 66 // Owned by ChromeContentRendererClient and outlive us. |
71 web_cache::WebCacheImpl* web_cache_impl_; | 67 web_cache::WebCacheImpl* web_cache_impl_; |
72 | 68 |
73 // true if webview is overlayed with grey color. | 69 // true if webview is overlayed with grey color. |
74 bool webview_visually_deemphasized_; | 70 bool webview_visually_deemphasized_; |
75 | 71 |
76 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 72 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
77 }; | 73 }; |
78 | 74 |
79 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 75 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |