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

Side by Side Diff: content/browser/shared_worker/shared_worker_host.h

Issue 212373002: Add UMA stats for SharedWorker in SharedWorkerHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | content/browser/shared_worker/shared_worker_host.cc » ('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 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h"
12 #include "content/browser/shared_worker/shared_worker_message_filter.h" 13 #include "content/browser/shared_worker/shared_worker_message_filter.h"
13 14
14 class GURL; 15 class GURL;
15 16
16 namespace IPC { 17 namespace IPC {
17 class Message; 18 class Message;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 class SharedWorkerMessageFilter; 22 class SharedWorkerMessageFilter;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // it contains a message port and sending it a valid route id. 82 // it contains a message port and sending it a valid route id.
82 void RelayMessage(const IPC::Message& message, 83 void RelayMessage(const IPC::Message& message,
83 SharedWorkerMessageFilter* incoming_filter); 84 SharedWorkerMessageFilter* incoming_filter);
84 85
85 // Return a vector of all the render process/render frame IDs. 86 // Return a vector of all the render process/render frame IDs.
86 std::vector<std::pair<int, int> > GetRenderFrameIDsForWorker(); 87 std::vector<std::pair<int, int> > GetRenderFrameIDsForWorker();
87 88
88 scoped_ptr<SharedWorkerInstance> instance_; 89 scoped_ptr<SharedWorkerInstance> instance_;
89 SharedWorkerMessageFilter* container_render_filter_; 90 SharedWorkerMessageFilter* container_render_filter_;
90 int worker_route_id_; 91 int worker_route_id_;
92 const base::TimeTicks creation_time_;
91 DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost); 93 DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
92 }; 94 };
93 } // namespace content 95 } // namespace content
94 96
95 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 97 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698