OLD | NEW |
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/app/android/content_main.h" | 5 #include "content/app/android/content_main.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "content/app/android/user_agent.h" | 11 #include "content/app/android/user_agent.h" |
12 #include "content/public/app/content_main_delegate.h" | 12 #include "content/public/app/content_main_delegate.h" |
13 #include "content/public/app/content_main_runner.h" | 13 #include "content/public/app/content_main_runner.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 #include "jni/content_main_jni.h" | 15 #include "jni/ContentMain_jni.h" |
16 #include "webkit/glue/user_agent.h" | 16 #include "webkit/glue/user_agent.h" |
17 | 17 |
18 using base::LazyInstance; | 18 using base::LazyInstance; |
19 using content::ContentMainRunner; | 19 using content::ContentMainRunner; |
20 using content::ContentMainDelegate; | 20 using content::ContentMainDelegate; |
21 | 21 |
22 namespace { | 22 namespace { |
23 LazyInstance<scoped_ptr<ContentMainRunner> > g_content_runner = | 23 LazyInstance<scoped_ptr<ContentMainRunner> > g_content_runner = |
24 LAZY_INSTANCE_INITIALIZER; | 24 LAZY_INSTANCE_INITIALIZER; |
25 | 25 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void SetContentMainDelegate(ContentMainDelegate* delegate) { | 59 void SetContentMainDelegate(ContentMainDelegate* delegate) { |
60 DCHECK(!g_content_main_delegate.Get().get()); | 60 DCHECK(!g_content_main_delegate.Get().get()); |
61 g_content_main_delegate.Get().reset(delegate); | 61 g_content_main_delegate.Get().reset(delegate); |
62 } | 62 } |
63 | 63 |
64 bool RegisterContentMain(JNIEnv* env) { | 64 bool RegisterContentMain(JNIEnv* env) { |
65 return RegisterNativesImpl(env); | 65 return RegisterNativesImpl(env); |
66 } | 66 } |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
OLD | NEW |