| OLD | NEW |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // |origin|, or "*", or "none", or empty string. | 126 // |origin|, or "*", or "none", or empty string. |
| 127 // Default implementation returns an empty string. | 127 // Default implementation returns an empty string. |
| 128 virtual std::string GetAccessControlAllowOriginForOrigin( | 128 virtual std::string GetAccessControlAllowOriginForOrigin( |
| 129 const std::string& origin) const; | 129 const std::string& origin) const; |
| 130 | 130 |
| 131 // Called to inform the source that StartDataRequest() will be called soon. | 131 // Called to inform the source that StartDataRequest() will be called soon. |
| 132 // Gives the source an opportunity to rewrite |path| to incorporate extra | 132 // Gives the source an opportunity to rewrite |path| to incorporate extra |
| 133 // information from the URLRequest prior to serving. | 133 // information from the URLRequest prior to serving. |
| 134 virtual void WillServiceRequest( | 134 virtual void WillServiceRequest( |
| 135 const net::URLRequest* request, | 135 const net::URLRequest* request, |
| 136 std::string* path) const {} | 136 std::string* path) const; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| 140 | 140 |
| 141 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ | 141 #endif // CONTENT_PUBLIC_BROWSER_URL_DATA_SOURCE_H_ |
| OLD | NEW |