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

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

Issue 12093012: Clean up of url data manager classes in content: move URLDataSourceImpl to its own file, move all t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/url_data_source.h" 5 #include "content/public/browser/url_data_source.h"
6 6
7 #include "content/browser/webui/url_data_manager.h" 7 #include "content/browser/webui/url_data_manager.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 void URLDataSource::Add(BrowserContext* browser_context, 12 void URLDataSource::Add(BrowserContext* browser_context,
13 URLDataSource* source) { 13 URLDataSource* source) {
14 ChromeURLDataManager::AddDataSource(browser_context, source); 14 URLDataManager::AddDataSource(browser_context, source);
15 } 15 }
16 16
17 MessageLoop* URLDataSource::MessageLoopForRequestPath( 17 MessageLoop* URLDataSource::MessageLoopForRequestPath(
18 const std::string& path) const { 18 const std::string& path) const {
19 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI); 19 return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI);
20 } 20 }
21 21
22 bool URLDataSource::ShouldReplaceExistingSource() const { 22 bool URLDataSource::ShouldReplaceExistingSource() const {
23 return true; 23 return true;
24 } 24 }
(...skipping 12 matching lines...) Expand all
37 37
38 std::string URLDataSource::GetContentSecurityPolicyFrameSrc() const { 38 std::string URLDataSource::GetContentSecurityPolicyFrameSrc() const {
39 return "frame-src 'none';"; 39 return "frame-src 'none';";
40 } 40 }
41 41
42 bool URLDataSource::ShouldDenyXFrameOptions() const { 42 bool URLDataSource::ShouldDenyXFrameOptions() const {
43 return true; 43 return true;
44 } 44 }
45 45
46 } // namespace content 46 } // namespace content
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698