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

Side by Side Diff: content/browser/devtools/devtools_tracing_handler.h

Issue 567943002: Refactoring the weak_ptr_factory order content/browser folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving swarming errors Created 6 years, 3 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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void OnCategoriesReceived(scoped_refptr<DevToolsProtocol::Command> command, 48 void OnCategoriesReceived(scoped_refptr<DevToolsProtocol::Command> command,
49 const std::set<std::string>& category_set); 49 const std::set<std::string>& category_set);
50 50
51 base::debug::TraceOptions TraceOptionsFromString(const std::string& options); 51 base::debug::TraceOptions TraceOptionsFromString(const std::string& options);
52 52
53 void SetupTimer(double usage_reporting_interval); 53 void SetupTimer(double usage_reporting_interval);
54 54
55 void DisableRecording(bool abort); 55 void DisableRecording(bool abort);
56 56
57 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
58 scoped_ptr<base::Timer> buffer_usage_poll_timer_; 57 scoped_ptr<base::Timer> buffer_usage_poll_timer_;
59 Target target_; 58 Target target_;
60 bool is_recording_; 59 bool is_recording_;
61 60
62 static const char* kDefaultCategories; 61 static const char* kDefaultCategories;
63 static const double kDefaultReportingInterval; 62 static const double kDefaultReportingInterval;
64 static const double kMinimumReportingInterval; 63 static const double kMinimumReportingInterval;
65 64
65 base::WeakPtrFactory<DevToolsTracingHandler> weak_factory_;
66
66 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler); 67 DISALLOW_COPY_AND_ASSIGN(DevToolsTracingHandler);
67 }; 68 };
68 69
69 } // namespace content 70 } // namespace content
70 71
71 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_ 72 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/devtools/devtools_tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698