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

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

Issue 2149323003: Change the way that gzipped resources are loaded from resources.pak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 4 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 (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 #ifndef CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
6 #define CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 6 #define CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Default implementation returns an empty string. 140 // Default implementation returns an empty string.
141 virtual std::string GetAccessControlAllowOriginForOrigin( 141 virtual std::string GetAccessControlAllowOriginForOrigin(
142 const std::string& origin) const; 142 const std::string& origin) const;
143 143
144 // Called to inform the source that StartDataRequest() will be called soon. 144 // Called to inform the source that StartDataRequest() will be called soon.
145 // Gives the source an opportunity to rewrite |path| to incorporate extra 145 // Gives the source an opportunity to rewrite |path| to incorporate extra
146 // information from the URLRequest prior to serving. 146 // information from the URLRequest prior to serving.
147 virtual void WillServiceRequest( 147 virtual void WillServiceRequest(
148 const net::URLRequest* request, 148 const net::URLRequest* request,
149 std::string* path) const {} 149 std::string* path) const {}
150
151 // Whether |path| is gzipped (and should be transmitted gzipped).
152 virtual bool IsGzipped(const std::string& path) const;
150 }; 153 };
151 154
152 } // namespace content 155 } // namespace content
153 156
154 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ 157 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | content/public/browser/url_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698