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

Side by Side Diff: chrome/browser/search/local_ntp_source.h

Issue 1376243005: Enabling included files when reloading local NTP with --local-ntp-reload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing fserb and mathp comments.: Created 5 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ 6 #define CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/url_data_source.h" 10 #include "content/public/browser/url_data_source.h"
(...skipping 13 matching lines...) Expand all
24 std::string GetSource() const override; 24 std::string GetSource() const override;
25 void StartDataRequest( 25 void StartDataRequest(
26 const std::string& path, 26 const std::string& path,
27 int render_process_id, 27 int render_process_id,
28 int render_frame_id, 28 int render_frame_id,
29 const content::URLDataSource::GotDataCallback& callback) override; 29 const content::URLDataSource::GotDataCallback& callback) override;
30 std::string GetMimeType(const std::string& path) const override; 30 std::string GetMimeType(const std::string& path) const override;
31 bool ShouldServiceRequest(const net::URLRequest* request) const override; 31 bool ShouldServiceRequest(const net::URLRequest* request) const override;
32 std::string GetContentSecurityPolicyFrameSrc() const override; 32 std::string GetContentSecurityPolicyFrameSrc() const override;
33 33
34 // Helper methods for inlining sources from <include> directives:
35 static void FlattenLocalInclude(
36 const content::URLDataSource::GotDataCallback& callback,
37 std::string topLevelResource,
38 base::RefCountedMemory* inlineResource);
39 static void CheckLocalIncludes(
40 const content::URLDataSource::GotDataCallback& callback,
41 base::RefCountedMemory* resource);
42 static void CheckLocalIncludesHelper(
43 const content::URLDataSource::GotDataCallback& callback,
44 std::string resource);
45
34 Profile* profile_; 46 Profile* profile_;
35 47
36 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); 48 DISALLOW_COPY_AND_ASSIGN(LocalNtpSource);
37 }; 49 };
38 50
39 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_ 51 #endif // CHROME_BROWSER_SEARCH_LOCAL_NTP_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/local_ntp_source.cc » ('j') | chrome/browser/search/local_ntp_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698