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

Side by Side Diff: chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.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_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP I_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/extensions/chrome_extension_function_details.h" 11 #include "chrome/browser/extensions/chrome_extension_function_details.h"
12 #include "chrome/common/extensions/api/cryptotoken_private.h" 12 #include "chrome/common/extensions/api/cryptotoken_private.h"
13 #include "extensions/browser/extension_function.h" 13 #include "extensions/browser/extension_function.h"
14 14
15 // Implementations for chrome.cryptotokenPrivate API functions. 15 // Implementations for chrome.cryptotokenPrivate API functions.
16 16
17 namespace extensions { 17 namespace extensions {
18 namespace api { 18 namespace api {
19 19
20 class CryptotokenPrivateCanOriginAssertAppIdFunction 20 class CryptotokenPrivateCanOriginAssertAppIdFunction
21 : public UIThreadExtensionFunction { 21 : public UIThreadExtensionFunction {
22 public: 22 public:
23 CryptotokenPrivateCanOriginAssertAppIdFunction(); 23 CryptotokenPrivateCanOriginAssertAppIdFunction();
24 DECLARE_EXTENSION_FUNCTION("cryptotokenPrivate.canOriginAssertAppId", 24 DECLARE_EXTENSION_FUNCTION("cryptotokenPrivate.canOriginAssertAppId",
25 CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID) 25 CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID)
26 protected: 26 protected:
27 ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {} 27 ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {}
28 ResponseAction Run() override; 28 ResponseAction Run() override;
29 29
30 private: 30 private:
31 ChromeExtensionFunctionDetails chrome_details_; 31 ChromeExtensionFunctionDetails chrome_details_;
32 }; 32 };
33 33
34 } // namespace api 34 } // namespace api
35 } // namespace extensions 35 } // namespace extensions
36 36
37 #endif // CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE _API_H_ 37 #endif // CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698