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

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: fix build for gn, fix unittests, add comments 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
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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 system_url_request_context_getter_; 592 system_url_request_context_getter_;
592 593
593 // True if SPDY is disabled by policy. 594 // True if SPDY is disabled by policy.
594 bool is_spdy_disabled_by_policy_; 595 bool is_spdy_disabled_by_policy_;
595 596
596 // True if QUIC is allowed by policy. 597 // True if QUIC is allowed by policy.
597 bool is_quic_allowed_by_policy_; 598 bool is_quic_allowed_by_policy_;
598 599
599 const base::TimeTicks creation_time_; 600 const base::TimeTicks creation_time_;
600 601
602 // Callback for updating data use prefs which needs to be initialized on UI
603 // thread and passed to // |ChromeNetworkDelegate|.
Alexei Svitkine (slow) 2016/03/31 04:32:25 Nit: Remove extra //
gayane -on leave until 09-2017 2016/03/31 17:54:57 Done.
604 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
605
601 base::WeakPtrFactory<IOThread> weak_factory_; 606 base::WeakPtrFactory<IOThread> weak_factory_;
602 607
603 DISALLOW_COPY_AND_ASSIGN(IOThread); 608 DISALLOW_COPY_AND_ASSIGN(IOThread);
604 }; 609 };
605 610
606 #endif // CHROME_BROWSER_IO_THREAD_H_ 611 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698