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

Side by Side Diff: content/shell/android/shell_manager.cc

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/android/shell_jni_registrar.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shell/android/shell_manager.h" 5 #include "content/shell/android/shell_manager.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/shell/shell.h" 13 #include "content/shell/browser/shell.h"
14 #include "content/shell/shell_browser_context.h" 14 #include "content/shell/browser/shell_browser_context.h"
15 #include "content/shell/shell_content_browser_client.h" 15 #include "content/shell/browser/shell_content_browser_client.h"
16 #include "jni/ShellManager_jni.h" 16 #include "jni/ShellManager_jni.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 using base::android::ScopedJavaLocalRef; 19 using base::android::ScopedJavaLocalRef;
20 20
21 namespace { 21 namespace {
22 22
23 struct GlobalState { 23 struct GlobalState {
24 GlobalState() {} 24 GlobalState() {}
25 base::android::ScopedJavaGlobalRef<jobject> j_shell_manager; 25 base::android::ScopedJavaGlobalRef<jobject> j_shell_manager;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ShellContentBrowserClient::Get()->browser_context(); 58 ShellContentBrowserClient::Get()->browser_context();
59 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); 59 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl));
60 Shell::CreateNewWindow(browserContext, 60 Shell::CreateNewWindow(browserContext,
61 url, 61 url,
62 NULL, 62 NULL,
63 MSG_ROUTING_NONE, 63 MSG_ROUTING_NONE,
64 gfx::Size()); 64 gfx::Size());
65 } 65 }
66 66
67 } // namespace content 67 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/android/shell_jni_registrar.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698