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

Side by Side Diff: ios/web/web_view_counter_impl.mm

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « ios/web/web_view_counter_impl.h ('k') | ios/web/web_view_creation_util.mm » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/web/web_view_counter_impl.h" 5 #import "ios/web/web_view_counter_impl.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "ios/web/public/browser_state.h" 10 #include "ios/web/public/browser_state.h"
9 #include "ios/web/public/web_thread.h" 11 #include "ios/web/public/web_thread.h"
10 12
11 namespace web { 13 namespace web {
12 14
13 namespace { 15 namespace {
14 // A key used to associate a WebViewCounter with a BrowserState. 16 // A key used to associate a WebViewCounter with a BrowserState.
15 const char kWebViewCounterKeyName[] = "web_view_counter"; 17 const char kWebViewCounterKeyName[] = "web_view_counter";
16 } // namespace 18 } // namespace
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 55
54 void WebViewCounterImpl::InsertWKWebView(WKWebView* wk_web_view) { 56 void WebViewCounterImpl::InsertWKWebView(WKWebView* wk_web_view) {
55 DCHECK_CURRENTLY_ON_WEB_THREAD(WebThread::UI); 57 DCHECK_CURRENTLY_ON_WEB_THREAD(WebThread::UI);
56 DCHECK(wk_web_view); 58 DCHECK(wk_web_view);
57 DCHECK([wk_web_view isKindOfClass:[WKWebView class]]); 59 DCHECK([wk_web_view isKindOfClass:[WKWebView class]]);
58 60
59 wk_web_view_counter_.Insert(wk_web_view); 61 wk_web_view_counter_.Insert(wk_web_view);
60 } 62 }
61 63
62 } // namespace web 64 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_view_counter_impl.h ('k') | ios/web/web_view_creation_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698