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

Side by Side Diff: content/browser/android/load_url_params.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 "content/browser/android/load_url_params.h" 5 #include "content/browser/android/load_url_params.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
12 #include "googleurl/src/gurl.h"
13 #include "jni/LoadUrlParams_jni.h" 12 #include "jni/LoadUrlParams_jni.h"
13 #include "url/gurl.h"
14 14
15 namespace { 15 namespace {
16 16
17 using content::NavigationController; 17 using content::NavigationController;
18 18
19 void RegisterConstants(JNIEnv* env) { 19 void RegisterConstants(JNIEnv* env) {
20 Java_LoadUrlParams_initializeConstants(env, 20 Java_LoadUrlParams_initializeConstants(env,
21 NavigationController::LOAD_TYPE_DEFAULT, 21 NavigationController::LOAD_TYPE_DEFAULT,
22 NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST, 22 NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST,
23 NavigationController::LOAD_TYPE_DATA, 23 NavigationController::LOAD_TYPE_DATA,
(...skipping 12 matching lines...) Expand all
36 RegisterConstants(env); 36 RegisterConstants(env);
37 return true; 37 return true;
38 } 38 }
39 39
40 jboolean IsDataScheme(JNIEnv* env, jclass clazz, jstring jurl) { 40 jboolean IsDataScheme(JNIEnv* env, jclass clazz, jstring jurl) {
41 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); 41 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl));
42 return url.SchemeIs(chrome::kDataScheme); 42 return url.SchemeIs(chrome::kDataScheme);
43 } 43 }
44 44
45 } // namespace content 45 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/download_controller_android_impl.h ('k') | content/browser/android/media_player_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698