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

Side by Side Diff: chrome/utility/safe_json_parser_handler.h

Issue 1899083002: Convert //chrome 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
« no previous file with comments | « chrome/utility/safe_browsing/mac/udif_unittest.cc ('k') | chrome/utility/shell_handler_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UTILITY_SAFE_JSON_PARSER_HANDLER_H_ 5 #ifndef CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
6 #define CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_ 6 #define CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/utility/utility_message_handler.h" 11 #include "chrome/utility/utility_message_handler.h"
11 12
12 namespace safe_json { 13 namespace safe_json {
13 class SafeJsonParserMessageFilter; 14 class SafeJsonParserMessageFilter;
14 } // namespace safe_json 15 } // namespace safe_json
15 16
16 // Dispatches IPCs for out of process JSON parsing. This is an adapter class 17 // Dispatches IPCs for out of process JSON parsing. This is an adapter class
17 // that delegates to safe_json::SafeJsonParserMessageFilter, since the 18 // that delegates to safe_json::SafeJsonParserMessageFilter, since the
18 // SafeJsonParserMessageFilter in //components/safe_json can't directly 19 // SafeJsonParserMessageFilter in //components/safe_json can't directly
19 // depend on //chrome/utility. 20 // depend on //chrome/utility.
20 class SafeJsonParserHandler : public UtilityMessageHandler { 21 class SafeJsonParserHandler : public UtilityMessageHandler {
21 public: 22 public:
22 SafeJsonParserHandler(); 23 SafeJsonParserHandler();
23 ~SafeJsonParserHandler() override; 24 ~SafeJsonParserHandler() override;
24 25
25 // UtilityMessageHandler 26 // UtilityMessageHandler
26 bool OnMessageReceived(const IPC::Message& message) override; 27 bool OnMessageReceived(const IPC::Message& message) override;
27 28
28 private: 29 private:
29 scoped_ptr<safe_json::SafeJsonParserMessageFilter> handler_; 30 std::unique_ptr<safe_json::SafeJsonParserMessageFilter> handler_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserHandler); 32 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserHandler);
32 }; 33 };
33 34
34 #endif // CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_ 35 #endif // CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/utility/safe_browsing/mac/udif_unittest.cc ('k') | chrome/utility/shell_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698