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

Side by Side Diff: chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E VENT_ROUTER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E VENT_ROUTER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E VENT_ROUTER_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E VENT_ROUTER_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h " 10 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h "
10 11
11 class ChromeExtensionWebRequestEventRouterDelegate 12 class ChromeExtensionWebRequestEventRouterDelegate
12 : public extensions::WebRequestEventRouterDelegate { 13 : public extensions::WebRequestEventRouterDelegate {
13 public: 14 public:
14 ChromeExtensionWebRequestEventRouterDelegate(); 15 ChromeExtensionWebRequestEventRouterDelegate();
15 ~ChromeExtensionWebRequestEventRouterDelegate() override; 16 ~ChromeExtensionWebRequestEventRouterDelegate() override;
16 17
17 // WebRequestEventRouterDelegate implementation. 18 // WebRequestEventRouterDelegate implementation.
18 void LogExtensionActivity(content::BrowserContext* browser_context, 19 void LogExtensionActivity(
19 bool is_incognito, 20 content::BrowserContext* browser_context,
20 const std::string& extension_id, 21 bool is_incognito,
21 const GURL& url, 22 const std::string& extension_id,
22 const std::string& api_call, 23 const GURL& url,
23 scoped_ptr<base::DictionaryValue> details) override; 24 const std::string& api_call,
25 std::unique_ptr<base::DictionaryValue> details) override;
24 void NotifyWebRequestWithheld(int render_process_id, 26 void NotifyWebRequestWithheld(int render_process_id,
25 int render_frame_id, 27 int render_frame_id,
26 const std::string& extension_id) override; 28 const std::string& extension_id) override;
27 }; 29 };
28 30
29 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUES T_EVENT_ROUTER_DELEGATE_H_ 31 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUES T_EVENT_ROUTER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698