Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/renderer/chrome_render_view_observer.h

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "url/gurl.h" 18 #include "url/gurl.h"
18 19
19 class ContentSettingsObserver; 20 class ContentSettingsObserver;
20 class SkBitmap; 21 class SkBitmap;
21 22
22 namespace blink { 23 namespace blink {
23 class WebView; 24 class WebView;
24 struct WebWindowFeatures; 25 struct WebWindowFeatures;
25 } 26 }
26 27
(...skipping 15 matching lines...) Expand all
42 // RenderViewObserver implementation. 43 // RenderViewObserver implementation.
43 bool OnMessageReceived(const IPC::Message& message) override; 44 bool OnMessageReceived(const IPC::Message& message) override;
44 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, 45 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame,
45 bool is_new_navigation) override; 46 bool is_new_navigation) override;
46 void Navigate(const GURL& url) override; 47 void Navigate(const GURL& url) override;
47 void OnDestruct() override; 48 void OnDestruct() override;
48 49
49 #if !defined(OS_ANDROID) 50 #if !defined(OS_ANDROID)
50 void OnWebUIJavaScript(const base::string16& javascript); 51 void OnWebUIJavaScript(const base::string16& javascript);
51 #endif 52 #endif
52 #if defined(ENABLE_EXTENSIONS) 53 #if BUILDFLAG(ENABLE_EXTENSIONS)
53 void OnSetVisuallyDeemphasized(bool deemphasized); 54 void OnSetVisuallyDeemphasized(bool deemphasized);
54 #endif 55 #endif
55 #if defined(OS_ANDROID) 56 #if defined(OS_ANDROID)
56 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, 57 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints,
57 content::BrowserControlsState current, 58 content::BrowserControlsState current,
58 bool animate); 59 bool animate);
59 #endif 60 #endif
60 void OnGetWebApplicationInfo(); 61 void OnGetWebApplicationInfo();
61 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features); 62 void OnSetWindowFeatures(const blink::WebWindowFeatures& window_features);
62 63
63 // Determines if a host is in the strict security host set. 64 // Determines if a host is in the strict security host set.
64 bool IsStrictSecurityHost(const std::string& host); 65 bool IsStrictSecurityHost(const std::string& host);
65 66
66 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. 67 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
67 std::vector<base::string16> webui_javascript_; 68 std::vector<base::string16> webui_javascript_;
68 69
69 // Owned by ChromeContentRendererClient and outlive us. 70 // Owned by ChromeContentRendererClient and outlive us.
70 web_cache::WebCacheImpl* web_cache_impl_; 71 web_cache::WebCacheImpl* web_cache_impl_;
71 72
72 // true if webview is overlayed with grey color. 73 // true if webview is overlayed with grey color.
73 bool webview_visually_deemphasized_; 74 bool webview_visually_deemphasized_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 76 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
76 }; 77 };
77 78
78 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 79 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_thread_observer.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698