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

Side by Side Diff: content/shell/browser/shell_devtools_frontend.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "content/public/browser/devtools_agent_host.h" 15 #include "content/public/browser/devtools_agent_host.h"
15 #include "content/public/browser/devtools_frontend_host.h" 16 #include "content/public/browser/devtools_frontend_host.h"
16 #include "content/public/browser/web_contents_observer.h" 17 #include "content/public/browser/web_contents_observer.h"
17 #include "net/url_request/url_fetcher_delegate.h" 18 #include "net/url_request/url_fetcher_delegate.h"
18 19
19 namespace base { 20 namespace base {
20 class Value; 21 class Value;
21 } 22 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 66
66 // net::URLFetcherDelegate overrides. 67 // net::URLFetcherDelegate overrides.
67 void OnURLFetchComplete(const net::URLFetcher* source) override; 68 void OnURLFetchComplete(const net::URLFetcher* source) override;
68 69
69 void SendMessageAck(int request_id, 70 void SendMessageAck(int request_id,
70 const base::Value* arg1); 71 const base::Value* arg1);
71 72
72 Shell* frontend_shell_; 73 Shell* frontend_shell_;
73 WebContents* inspected_contents_; 74 WebContents* inspected_contents_;
74 scoped_refptr<DevToolsAgentHost> agent_host_; 75 scoped_refptr<DevToolsAgentHost> agent_host_;
75 scoped_ptr<DevToolsFrontendHost> frontend_host_; 76 std::unique_ptr<DevToolsFrontendHost> frontend_host_;
76 using PendingRequestsMap = std::map<const net::URLFetcher*, int>; 77 using PendingRequestsMap = std::map<const net::URLFetcher*, int>;
77 PendingRequestsMap pending_requests_; 78 PendingRequestsMap pending_requests_;
78 base::DictionaryValue preferences_; 79 base::DictionaryValue preferences_;
79 base::WeakPtrFactory<ShellDevToolsFrontend> weak_factory_; 80 base::WeakPtrFactory<ShellDevToolsFrontend> weak_factory_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); 82 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 87 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698