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

Side by Side Diff: components/navigation_interception/intercept_navigation_delegate.cc

Issue 1370603002: Make some global pointers const void* const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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
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 "components/navigation_interception/intercept_navigation_delegate.h" 5 #include "components/navigation_interception/intercept_navigation_delegate.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/callback.h" 9 #include "base/callback.h"
10 #include "components/navigation_interception/intercept_navigation_resource_throt tle.h" 10 #include "components/navigation_interception/intercept_navigation_resource_throt tle.h"
(...skipping 13 matching lines...) Expand all
24 using ui::PageTransition; 24 using ui::PageTransition;
25 using content::RenderViewHost; 25 using content::RenderViewHost;
26 using content::WebContents; 26 using content::WebContents;
27 27
28 namespace navigation_interception { 28 namespace navigation_interception {
29 29
30 namespace { 30 namespace {
31 31
32 const int kMaxValidityOfUserGestureCarryoverInSeconds = 10; 32 const int kMaxValidityOfUserGestureCarryoverInSeconds = 10;
33 33
34 const void* kInterceptNavigationDelegateUserDataKey = 34 const void* const kInterceptNavigationDelegateUserDataKey =
35 &kInterceptNavigationDelegateUserDataKey; 35 &kInterceptNavigationDelegateUserDataKey;
36 36
37 bool CheckIfShouldIgnoreNavigationOnUIThread(WebContents* source, 37 bool CheckIfShouldIgnoreNavigationOnUIThread(WebContents* source,
38 const NavigationParams& params) { 38 const NavigationParams& params) {
39 DCHECK_CURRENTLY_ON(BrowserThread::UI); 39 DCHECK_CURRENTLY_ON(BrowserThread::UI);
40 DCHECK(source); 40 DCHECK(source);
41 41
42 InterceptNavigationDelegate* intercept_navigation_delegate = 42 InterceptNavigationDelegate* intercept_navigation_delegate =
43 InterceptNavigationDelegate::Get(source); 43 InterceptNavigationDelegate::Get(source);
44 if (!intercept_navigation_delegate) 44 if (!intercept_navigation_delegate)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now(); 144 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now();
145 } 145 }
146 146
147 // Register native methods. 147 // Register native methods.
148 148
149 bool RegisterInterceptNavigationDelegate(JNIEnv* env) { 149 bool RegisterInterceptNavigationDelegate(JNIEnv* env) {
150 return RegisterNativesImpl(env); 150 return RegisterNativesImpl(env);
151 } 151 }
152 152
153 } // namespace navigation_interception 153 } // namespace navigation_interception
OLDNEW
« no previous file with comments | « components/domain_reliability/uploader.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698