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

Side by Side Diff: chrome/browser/io_thread.h

Issue 1818613002: Implement UMA log throttling for cellular connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: singleton pattern removed Created 4 years, 8 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 | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <unordered_set> 14 #include <unordered_set>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/strings/string_piece.h" 22 #include "base/strings/string_piece.h"
23 #include "base/time/time.h" 23 #include "base/time/time.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "chrome/browser/net/chrome_network_delegate.h" 25 #include "chrome/browser/net/chrome_network_delegate.h"
26 #include "chrome/common/features.h" 26 #include "chrome/common/features.h"
27 #include "components/metrics/data_use_tracker.h"
27 #include "components/prefs/pref_member.h" 28 #include "components/prefs/pref_member.h"
28 #include "components/ssl_config/ssl_config_service_manager.h" 29 #include "components/ssl_config/ssl_config_service_manager.h"
29 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/browser_thread_delegate.h" 31 #include "content/public/browser/browser_thread_delegate.h"
31 #include "net/base/network_change_notifier.h" 32 #include "net/base/network_change_notifier.h"
32 #include "net/http/http_network_session.h" 33 #include "net/http/http_network_session.h"
33 34
34 class PrefProxyConfigTracker; 35 class PrefProxyConfigTracker;
35 class PrefService; 36 class PrefService;
36 class PrefRegistrySimple; 37 class PrefRegistrySimple;
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 system_url_request_context_getter_; 593 system_url_request_context_getter_;
593 594
594 // True if SPDY is disabled by policy. 595 // True if SPDY is disabled by policy.
595 bool is_spdy_disabled_by_policy_; 596 bool is_spdy_disabled_by_policy_;
596 597
597 // True if QUIC is allowed by policy. 598 // True if QUIC is allowed by policy.
598 bool is_quic_allowed_by_policy_; 599 bool is_quic_allowed_by_policy_;
599 600
600 const base::TimeTicks creation_time_; 601 const base::TimeTicks creation_time_;
601 602
603 base::WeakPtr<metrics::DataUseTracker> data_use_tracker_;
604
602 base::WeakPtrFactory<IOThread> weak_factory_; 605 base::WeakPtrFactory<IOThread> weak_factory_;
603 606
604 DISALLOW_COPY_AND_ASSIGN(IOThread); 607 DISALLOW_COPY_AND_ASSIGN(IOThread);
605 }; 608 };
606 609
607 #endif // CHROME_BROWSER_IO_THREAD_H_ 610 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698