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

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

Issue 418133012: Add button to page info to revoke user certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 18 matching lines...) Expand all
29 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 29 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
30 #include "content/browser/media/media_web_contents_observer.h" 30 #include "content/browser/media/media_web_contents_observer.h"
31 #include "content/browser/renderer_host/compositor_impl_android.h" 31 #include "content/browser/renderer_host/compositor_impl_android.h"
32 #include "content/browser/renderer_host/input/motion_event_android.h" 32 #include "content/browser/renderer_host/input/motion_event_android.h"
33 #include "content/browser/renderer_host/input/web_input_event_builders_android.h " 33 #include "content/browser/renderer_host/input/web_input_event_builders_android.h "
34 #include "content/browser/renderer_host/input/web_input_event_util.h" 34 #include "content/browser/renderer_host/input/web_input_event_util.h"
35 #include "content/browser/renderer_host/render_view_host_impl.h" 35 #include "content/browser/renderer_host/render_view_host_impl.h"
36 #include "content/browser/renderer_host/render_widget_host_impl.h" 36 #include "content/browser/renderer_host/render_widget_host_impl.h"
37 #include "content/browser/renderer_host/render_widget_host_view_android.h" 37 #include "content/browser/renderer_host/render_widget_host_view_android.h"
38 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host. h" 38 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host. h"
39 #include "content/browser/ssl/ssl_host_state.h"
40 #include "content/browser/transition_request_manager.h" 39 #include "content/browser/transition_request_manager.h"
41 #include "content/browser/web_contents/web_contents_view_android.h" 40 #include "content/browser/web_contents/web_contents_view_android.h"
42 #include "content/common/frame_messages.h" 41 #include "content/common/frame_messages.h"
43 #include "content/common/input/web_input_event_traits.h" 42 #include "content/common/input/web_input_event_traits.h"
44 #include "content/common/input_messages.h" 43 #include "content/common/input_messages.h"
45 #include "content/common/view_messages.h" 44 #include "content/common/view_messages.h"
46 #include "content/public/browser/browser_context.h" 45 #include "content/public/browser/browser_context.h"
47 #include "content/public/browser/browser_thread.h" 46 #include "content/public/browser/browser_thread.h"
48 #include "content/public/browser/favicon_status.h" 47 #include "content/public/browser/favicon_status.h"
49 #include "content/public/browser/render_frame_host.h" 48 #include "content/public/browser/render_frame_host.h"
49 #include "content/public/browser/ssl_host_state_delegate.h"
50 #include "content/public/browser/web_contents.h" 50 #include "content/public/browser/web_contents.h"
51 #include "content/public/common/content_client.h" 51 #include "content/public/common/content_client.h"
52 #include "content/public/common/content_switches.h" 52 #include "content/public/common/content_switches.h"
53 #include "content/public/common/menu_item.h" 53 #include "content/public/common/menu_item.h"
54 #include "content/public/common/page_transition_types.h" 54 #include "content/public/common/page_transition_types.h"
55 #include "content/public/common/user_agent.h" 55 #include "content/public/common/user_agent.h"
56 #include "jni/ContentViewCore_jni.h" 56 #include "jni/ContentViewCore_jni.h"
57 #include "third_party/WebKit/public/web/WebInputEvent.h" 57 #include "third_party/WebKit/public/web/WebInputEvent.h"
58 #include "ui/base/android/view_android.h" 58 #include "ui/base/android/view_android.h"
59 #include "ui/base/android/window_android.h" 59 #include "ui/base/android/window_android.h"
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 jstring_text.obj(), 1414 jstring_text.obj(),
1415 selection_start, 1415 selection_start,
1416 selection_end, 1416 selection_end,
1417 composition_start, 1417 composition_start,
1418 composition_end, 1418 composition_end,
1419 show_ime_if_needed, 1419 show_ime_if_needed,
1420 is_non_ime_change); 1420 is_non_ime_change);
1421 } 1421 }
1422 1422
1423 void ContentViewCoreImpl::ClearSslPreferences(JNIEnv* env, jobject obj) { 1423 void ContentViewCoreImpl::ClearSslPreferences(JNIEnv* env, jobject obj) {
1424 SSLHostState* state = SSLHostState::GetFor( 1424 web_contents_->GetController().
1425 web_contents_->GetController().GetBrowserContext()); 1425 GetBrowserContext()->
1426 state->Clear(); 1426 GetSSLHostStateDelegate()->
1427 Clear();
1427 } 1428 }
1428 1429
1429 void ContentViewCoreImpl::SetUseDesktopUserAgent( 1430 void ContentViewCoreImpl::SetUseDesktopUserAgent(
1430 JNIEnv* env, 1431 JNIEnv* env,
1431 jobject obj, 1432 jobject obj,
1432 jboolean enabled, 1433 jboolean enabled,
1433 jboolean reload_on_state_change) { 1434 jboolean reload_on_state_change) {
1434 if (GetUseDesktopUserAgent(env, obj) == enabled) 1435 if (GetUseDesktopUserAgent(env, obj) == enabled)
1435 return; 1436 return;
1436 1437
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 reinterpret_cast<ui::WindowAndroid*>(window_android), 1676 reinterpret_cast<ui::WindowAndroid*>(window_android),
1676 retained_objects_set); 1677 retained_objects_set);
1677 return reinterpret_cast<intptr_t>(view); 1678 return reinterpret_cast<intptr_t>(view);
1678 } 1679 }
1679 1680
1680 bool RegisterContentViewCore(JNIEnv* env) { 1681 bool RegisterContentViewCore(JNIEnv* env) {
1681 return RegisterNativesImpl(env); 1682 return RegisterNativesImpl(env);
1682 } 1683 }
1683 1684
1684 } // namespace content 1685 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698