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

Side by Side Diff: android_webview/native/android_protocol_handler.cc

Issue 120593003: Move kFileScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "android_webview/native/android_protocol_handler.h" 5 #include "android_webview/native/android_protocol_handler.h"
6 6
7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h" 7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h"
8 #include "android_webview/browser/net/aw_url_request_job_factory.h" 8 #include "android_webview/browser/net/aw_url_request_job_factory.h"
9 #include "android_webview/common/url_constants.h" 9 #include "android_webview/common/url_constants.h"
10 #include "android_webview/native/input_stream_impl.h" 10 #include "android_webview/native/input_stream_impl.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 return new AndroidStreamReaderURLRequestJob( 223 return new AndroidStreamReaderURLRequestJob(
224 request, 224 request,
225 network_delegate, 225 network_delegate,
226 reader_delegate.PassAs<AndroidStreamReaderURLRequestJob::Delegate>()); 226 reader_delegate.PassAs<AndroidStreamReaderURLRequestJob::Delegate>());
227 } 227 }
228 228
229 // AssetFileProtocolHandler --------------------------------------------------- 229 // AssetFileProtocolHandler ---------------------------------------------------
230 230
231 AssetFileProtocolHandler::AssetFileProtocolHandler() 231 AssetFileProtocolHandler::AssetFileProtocolHandler()
232 : asset_prefix_(std::string(chrome::kFileScheme) + 232 : asset_prefix_(std::string(content::kFileScheme) +
233 std::string(content::kStandardSchemeSeparator) + 233 std::string(content::kStandardSchemeSeparator) +
234 android_webview::kAndroidAssetPath), 234 android_webview::kAndroidAssetPath),
235 resource_prefix_(std::string(chrome::kFileScheme) + 235 resource_prefix_(std::string(content::kFileScheme) +
236 std::string(content::kStandardSchemeSeparator) + 236 std::string(content::kStandardSchemeSeparator) +
237 android_webview::kAndroidResourcePath) { 237 android_webview::kAndroidResourcePath) {
238 } 238 }
239 239
240 AssetFileProtocolHandler::~AssetFileProtocolHandler() { 240 AssetFileProtocolHandler::~AssetFileProtocolHandler() {
241 } 241 }
242 242
243 bool AssetFileProtocolHandler::CanHandleRequest( 243 bool AssetFileProtocolHandler::CanHandleRequest(
244 const net::URLRequest* request) const { 244 const net::URLRequest* request) const {
245 if (!request->url().SchemeIsFile()) 245 if (!request->url().SchemeIsFile())
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 env, android_webview::kAndroidAssetPath).Release(); 308 env, android_webview::kAndroidAssetPath).Release();
309 } 309 }
310 310
311 static jstring GetAndroidResourcePath(JNIEnv* env, jclass /*clazz*/) { 311 static jstring GetAndroidResourcePath(JNIEnv* env, jclass /*clazz*/) {
312 // OK to release, JNI binding. 312 // OK to release, JNI binding.
313 return ConvertUTF8ToJavaString( 313 return ConvertUTF8ToJavaString(
314 env, android_webview::kAndroidResourcePath).Release(); 314 env, android_webview::kAndroidResourcePath).Release();
315 } 315 }
316 316
317 } // namespace android_webview 317 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | android_webview/native/cookie_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698