Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / search / local_files_ntp_source.h
blobaef34a3bdd94d924295a52a4a8094780b9bc891f
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_
8 #include <string>
9 #include "content/public/browser/url_data_source.h"
11 namespace local_ntp {
13 // Sends the content of |path| to |callback|, reading |path| as a local file.
14 // This function is only used for dev builds.
15 void SendLocalFileResource(
16 const std::string& path,
17 const content::URLDataSource::GotDataCallback& callback);
19 // Sends the content of |path| to |callback|, reading |path| as a local file.
20 // It also replaces the first occurrence of {{ORIGIN}} with |origin|.
21 // This function is only used for dev builds.
22 void SendLocalFileResourceWithOrigin(
23 const std::string& path,
24 const std::string& origin,
25 const content::URLDataSource::GotDataCallback& callback);
27 } // namespace local_ntp
29 #endif // CHROME_BROWSER_SEARCH_LOCAL_FILES_NTP_SOURCE_H_