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

Side by Side Diff: content/browser/trace_controller_impl.h

Issue 11273049: Revert 164120 - content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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_TRACE_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACE_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_TRACE_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACE_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "content/public/browser/trace_controller.h" 14 #include "content/public/browser/trace_controller.h"
15 15
16 class CommandLine; 16 class CommandLine;
17 class TraceMessageFilter;
17 18
18 namespace content { 19 namespace content {
19 class TraceMessageFilter;
20 20
21 class TraceControllerImpl : public TraceController { 21 class TraceControllerImpl : public TraceController {
22 public: 22 public:
23 static TraceControllerImpl* GetInstance(); 23 static TraceControllerImpl* GetInstance();
24 24
25 // Called on the main thread of the browser process to initialize 25 // Called on the main thread of the browser process to initialize
26 // startup tracing. 26 // startup tracing.
27 void InitStartupTracing(const CommandLine& command_line); 27 void InitStartupTracing(const CommandLine& command_line);
28 28
29 // Get set of known categories. This can change as new code paths are reached. 29 // Get set of known categories. This can change as new code paths are reached.
(...skipping 19 matching lines...) Expand all
49 virtual bool SetWatchEvent(TraceSubscriber* subscriber, 49 virtual bool SetWatchEvent(TraceSubscriber* subscriber,
50 const std::string& category_name, 50 const std::string& category_name,
51 const std::string& event_name) OVERRIDE; 51 const std::string& event_name) OVERRIDE;
52 virtual bool CancelWatchEvent(TraceSubscriber* subscriber) OVERRIDE; 52 virtual bool CancelWatchEvent(TraceSubscriber* subscriber) OVERRIDE;
53 virtual void CancelSubscriber(TraceSubscriber* subscriber) OVERRIDE; 53 virtual void CancelSubscriber(TraceSubscriber* subscriber) OVERRIDE;
54 54
55 private: 55 private:
56 typedef std::set<scoped_refptr<TraceMessageFilter> > FilterMap; 56 typedef std::set<scoped_refptr<TraceMessageFilter> > FilterMap;
57 57
58 friend struct base::DefaultLazyInstanceTraits<TraceControllerImpl>; 58 friend struct base::DefaultLazyInstanceTraits<TraceControllerImpl>;
59 friend class TraceMessageFilter; 59 friend class ::TraceMessageFilter;
60 60
61 TraceControllerImpl(); 61 TraceControllerImpl();
62 virtual ~TraceControllerImpl(); 62 virtual ~TraceControllerImpl();
63 63
64 bool is_tracing_enabled() const { 64 bool is_tracing_enabled() const {
65 return can_end_tracing(); 65 return can_end_tracing();
66 } 66 }
67 67
68 bool can_end_tracing() const { 68 bool can_end_tracing() const {
69 return is_tracing_ && pending_end_ack_count_ == 0; 69 return is_tracing_ && pending_end_ack_count_ == 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 std::string watch_category_; 107 std::string watch_category_;
108 std::string watch_name_; 108 std::string watch_name_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl); 110 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_BROWSER_TRACE_CONTROLLER_IMPL_H_ 115 #endif // CONTENT_BROWSER_TRACE_CONTROLLER_IMPL_H_
116 116
OLDNEW
« no previous file with comments | « content/browser/system_message_window_win_unittest.cc ('k') | content/browser/trace_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698