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

Side by Side Diff: extensions/browser/extension_host.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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 | « extensions/browser/extension_host.h ('k') | extensions/browser/extension_host_observer.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/extension_host.h" 5 #include "extensions/browser/extension_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/profiler/scoped_tracker.h" 10 #include "base/profiler/scoped_tracker.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 void ExtensionHost::OnBackgroundEventDispatched(const std::string& event_name, 210 void ExtensionHost::OnBackgroundEventDispatched(const std::string& event_name,
211 int event_id) { 211 int event_id) {
212 CHECK(IsBackgroundPage()); 212 CHECK(IsBackgroundPage());
213 unacked_messages_.insert(event_id); 213 unacked_messages_.insert(event_id);
214 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_, 214 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_,
215 OnBackgroundEventDispatched(this, event_name, event_id)); 215 OnBackgroundEventDispatched(this, event_name, event_id));
216 } 216 }
217 217
218 void ExtensionHost::OnNetworkRequestStarted(uint64 request_id) { 218 void ExtensionHost::OnNetworkRequestStarted(uint64_t request_id) {
219 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_, 219 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_,
220 OnNetworkRequestStarted(this, request_id)); 220 OnNetworkRequestStarted(this, request_id));
221 } 221 }
222 222
223 void ExtensionHost::OnNetworkRequestDone(uint64 request_id) { 223 void ExtensionHost::OnNetworkRequestDone(uint64_t request_id) {
224 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_, 224 FOR_EACH_OBSERVER(ExtensionHostObserver, observer_list_,
225 OnNetworkRequestDone(this, request_id)); 225 OnNetworkRequestDone(this, request_id));
226 } 226 }
227 227
228 const GURL& ExtensionHost::GetURL() const { 228 const GURL& ExtensionHost::GetURL() const {
229 return host_contents()->GetURL(); 229 return host_contents()->GetURL();
230 } 230 }
231 231
232 void ExtensionHost::LoadInitialURL() { 232 void ExtensionHost::LoadInitialURL() {
233 load_start_.reset(new base::ElapsedTimer()); 233 load_start_.reset(new base::ElapsedTimer());
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } 486 }
487 } else if (extension_host_type_ == VIEW_TYPE_EXTENSION_POPUP) { 487 } else if (extension_host_type_ == VIEW_TYPE_EXTENSION_POPUP) {
488 UMA_HISTOGRAM_MEDIUM_TIMES("Extensions.PopupLoadTime2", 488 UMA_HISTOGRAM_MEDIUM_TIMES("Extensions.PopupLoadTime2",
489 load_start_->Elapsed()); 489 load_start_->Elapsed());
490 UMA_HISTOGRAM_MEDIUM_TIMES("Extensions.PopupCreateTime", 490 UMA_HISTOGRAM_MEDIUM_TIMES("Extensions.PopupCreateTime",
491 create_start_.Elapsed()); 491 create_start_.Elapsed());
492 } 492 }
493 } 493 }
494 494
495 } // namespace extensions 495 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_host.h ('k') | extensions/browser/extension_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698