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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 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_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 11
10 #include "base/basictypes.h" 12 #include "base/macros.h"
11 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/observer_list.h" 15 #include "base/observer_list.h"
14 #include "content/public/browser/devtools_agent_host.h" 16 #include "content/public/browser/devtools_agent_host.h"
15 17
16 namespace content { 18 namespace content {
17 19
18 class BrowserContext; 20 class BrowserContext;
19 class DevToolsAgentHostImpl; 21 class DevToolsAgentHostImpl;
20 class ServiceWorkerDevToolsAgentHost; 22 class ServiceWorkerDevToolsAgentHost;
(...skipping 16 matching lines...) Expand all
37 39
38 protected: 40 protected:
39 virtual ~Observer() {} 41 virtual ~Observer() {}
40 }; 42 };
41 43
42 class ServiceWorkerIdentifier { 44 class ServiceWorkerIdentifier {
43 public: 45 public:
44 ServiceWorkerIdentifier( 46 ServiceWorkerIdentifier(
45 const ServiceWorkerContextCore* context, 47 const ServiceWorkerContextCore* context,
46 base::WeakPtr<ServiceWorkerContextCore> context_weak, 48 base::WeakPtr<ServiceWorkerContextCore> context_weak,
47 int64 version_id, 49 int64_t version_id,
48 const GURL& url); 50 const GURL& url);
49 ServiceWorkerIdentifier(const ServiceWorkerIdentifier& other); 51 ServiceWorkerIdentifier(const ServiceWorkerIdentifier& other);
50 ~ServiceWorkerIdentifier(); 52 ~ServiceWorkerIdentifier();
51 53
52 bool Matches(const ServiceWorkerIdentifier& other) const; 54 bool Matches(const ServiceWorkerIdentifier& other) const;
53 55
54 const ServiceWorkerContextCore* context() const { return context_; } 56 const ServiceWorkerContextCore* context() const { return context_; }
55 base::WeakPtr<ServiceWorkerContextCore> context_weak() const { 57 base::WeakPtr<ServiceWorkerContextCore> context_weak() const {
56 return context_weak_; 58 return context_weak_;
57 } 59 }
58 int64 version_id() const { return version_id_; } 60 int64_t version_id() const { return version_id_; }
59 GURL url() const { return url_; } 61 GURL url() const { return url_; }
60 62
61 private: 63 private:
62 const ServiceWorkerContextCore* const context_; 64 const ServiceWorkerContextCore* const context_;
63 const base::WeakPtr<ServiceWorkerContextCore> context_weak_; 65 const base::WeakPtr<ServiceWorkerContextCore> context_weak_;
64 const int64 version_id_; 66 const int64_t version_id_;
65 const GURL url_; 67 const GURL url_;
66 }; 68 };
67 69
68 // Returns the ServiceWorkerDevToolsManager singleton. 70 // Returns the ServiceWorkerDevToolsManager singleton.
69 static ServiceWorkerDevToolsManager* GetInstance(); 71 static ServiceWorkerDevToolsManager* GetInstance();
70 72
71 DevToolsAgentHostImpl* GetDevToolsAgentHostForWorker(int worker_process_id, 73 DevToolsAgentHostImpl* GetDevToolsAgentHostForWorker(int worker_process_id,
72 int worker_route_id); 74 int worker_route_id);
73 void AddAllAgentHosts( 75 void AddAllAgentHosts(
74 std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>* result); 76 std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>* result);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 base::ObserverList<Observer> observer_list_; 115 base::ObserverList<Observer> observer_list_;
114 AgentHostMap workers_; 116 AgentHostMap workers_;
115 bool debug_service_worker_on_start_; 117 bool debug_service_worker_on_start_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsManager); 119 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsManager);
118 }; 120 };
119 121
120 } // namespace content 122 } // namespace content
121 123
122 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_ 124 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698