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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 10080018: Don't allow sending data URLs to WebUI, unless in a ChromeOS BalloonHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors and crash in tests. Created 8 years, 8 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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 12 matching lines...) Expand all
23 const OpenURLParams& params) { 23 const OpenURLParams& params) {
24 return NULL; 24 return NULL;
25 } 25 }
26 26
27 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 27 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
28 return false; 28 return false;
29 } 29 }
30 30
31 bool WebContentsDelegate::IsApplication() const { return false; } 31 bool WebContentsDelegate::IsApplication() const { return false; }
32 32
33 bool WebContentsDelegate::CanLoadDataURLsInWebUI() const { return false; }
34
33 bool WebContentsDelegate::CanReloadContents(WebContents* source) const { 35 bool WebContentsDelegate::CanReloadContents(WebContents* source) const {
34 return true; 36 return true;
35 } 37 }
36 38
37 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 39 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
38 return gfx::Rect(); 40 return gfx::Rect();
39 } 41 }
40 42
41 bool WebContentsDelegate::ShouldSuppressDialogs() { 43 bool WebContentsDelegate::ShouldSuppressDialogs() {
42 return false; 44 return false;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); 164 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end());
163 attached_contents_.insert(web_contents); 165 attached_contents_.insert(web_contents);
164 } 166 }
165 167
166 void WebContentsDelegate::Detach(WebContents* web_contents) { 168 void WebContentsDelegate::Detach(WebContents* web_contents) {
167 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); 169 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end());
168 attached_contents_.erase(web_contents); 170 attached_contents_.erase(web_contents);
169 } 171 }
170 172
171 } // namespace content 173 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/browser/web_ui_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698