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

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

Issue 10808113: Only allows extensions to create HTML notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 4 months 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 | Annotate | Revision Log
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>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual bool allowScriptExtension(WebKit::WebFrame* frame, 98 virtual bool allowScriptExtension(WebKit::WebFrame* frame,
99 const WebKit::WebString& extension_name, 99 const WebKit::WebString& extension_name,
100 int extension_group, 100 int extension_group,
101 int world_id); 101 int world_id);
102 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE; 102 virtual bool allowStorage(WebKit::WebFrame* frame, bool local) OVERRIDE;
103 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame, 103 virtual bool allowReadFromClipboard(WebKit::WebFrame* frame,
104 bool default_value) OVERRIDE; 104 bool default_value) OVERRIDE;
105 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame, 105 virtual bool allowWriteToClipboard(WebKit::WebFrame* frame,
106 bool default_value) OVERRIDE; 106 bool default_value) OVERRIDE;
107 virtual bool allowWebComponents(const WebKit::WebDocument&, bool) OVERRIDE; 107 virtual bool allowWebComponents(const WebKit::WebDocument&, bool) OVERRIDE;
108 virtual bool allowHTMLNotifications(
109 const WebKit::WebDocument& document) OVERRIDE;
108 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE; 110 virtual void didNotAllowPlugins(WebKit::WebFrame* frame) OVERRIDE;
109 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE; 111 virtual void didNotAllowScript(WebKit::WebFrame* frame) OVERRIDE;
110 virtual bool allowDisplayingInsecureContent( 112 virtual bool allowDisplayingInsecureContent(
111 WebKit::WebFrame* frame, 113 WebKit::WebFrame* frame,
112 bool allowed_per_settings, 114 bool allowed_per_settings,
113 const WebKit::WebSecurityOrigin& context, 115 const WebKit::WebSecurityOrigin& context,
114 const WebKit::WebURL& url) OVERRIDE; 116 const WebKit::WebURL& url) OVERRIDE;
115 virtual bool allowRunningInsecureContent( 117 virtual bool allowRunningInsecureContent(
116 WebKit::WebFrame* frame, 118 WebKit::WebFrame* frame,
117 bool allowed_per_settings, 119 bool allowed_per_settings,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // A color page overlay when visually de-emaphasized. 227 // A color page overlay when visually de-emaphasized.
226 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; 228 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_;
227 229
228 // Used to delay calling CapturePageInfo. 230 // Used to delay calling CapturePageInfo.
229 base::Timer capture_timer_; 231 base::Timer capture_timer_;
230 232
231 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 233 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
232 }; 234 };
233 235
234 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 236 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/notifications_apitest.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698