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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 28 matching lines...) Expand all
39 // WorkerDevToolsAgentHost overrides. 39 // WorkerDevToolsAgentHost overrides.
40 void OnAttachedStateChanged(bool attached) override; 40 void OnAttachedStateChanged(bool attached) override;
41 41
42 int64_t service_worker_version_id() const; 42 int64_t service_worker_version_id() const;
43 GURL scope() const; 43 GURL scope() const;
44 44
45 bool Matches(const ServiceWorkerIdentifier& other); 45 bool Matches(const ServiceWorkerIdentifier& other);
46 46
47 private: 47 private:
48 ~ServiceWorkerDevToolsAgentHost() override; 48 ~ServiceWorkerDevToolsAgentHost() override;
49 scoped_ptr<ServiceWorkerIdentifier> service_worker_; 49 std::unique_ptr<ServiceWorkerIdentifier> service_worker_;
50 scoped_ptr<devtools::network::NetworkHandler> network_handler_; 50 std::unique_ptr<devtools::network::NetworkHandler> network_handler_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); 52 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost);
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ 57 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698