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

Side by Side Diff: chrome/browser/search/local_files_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: Including build_config.h as necessary. Created 5 years 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
« no previous file with comments | « no previous file | chrome/browser/search/local_files_ntp_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_FILES_NTP_SOURCE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_ 6 #define CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "build/build_config.h"
9 #include "content/public/browser/url_data_source.h" 10 #include "content/public/browser/url_data_source.h"
10 11
12 #if !defined(GOOGLE_CHROME_BUILD) && !defined(OS_IOS)
13
11 namespace local_ntp { 14 namespace local_ntp {
12 15
13 // Sends the content of |path| to |callback|, reading |path| as a local file. 16 // Sends the content of |path| to |callback|, reading |path| as a local file.
14 // This function is only used for dev builds. 17 // This function is only used for dev builds.
15 void SendLocalFileResource( 18 void SendLocalFileResource(
16 const std::string& path, 19 const std::string& path,
17 const content::URLDataSource::GotDataCallback& callback); 20 const content::URLDataSource::GotDataCallback& callback);
18 21
19 // Sends the content of |path| to |callback|, reading |path| as a local file. 22 // Sends the content of |path| to |callback|, reading |path| as a local file.
20 // It also replaces the first occurrence of {{ORIGIN}} with |origin|. 23 // It also replaces the first occurrence of {{ORIGIN}} with |origin|.
21 // This function is only used for dev builds. 24 // This function is only used for dev builds.
22 void SendLocalFileResourceWithOrigin( 25 void SendLocalFileResourceWithOrigin(
23 const std::string& path, 26 const std::string& path,
24 const std::string& origin, 27 const std::string& origin,
25 const content::URLDataSource::GotDataCallback& callback); 28 const content::URLDataSource::GotDataCallback& callback);
26 29
27 } // namespace local_ntp 30 } // namespace local_ntp
28 31
32 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(OS_IOS)
29 #endif // CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_ 33 #endif // CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/local_files_ntp_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698