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: chrome/utility/safe_json_parser_handler.h

Issue 1140053003: Refactoring: Moving the SafeJsonParser to its own component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving to namespace Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
6 #define CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/utility/utility_message_handler.h"
10
11 namespace safe_json_parser {
12 class SafeJsonParserMessageFilter;
13 } // namespace safe_json_parser
14
15 // Dispatches IPCs for out of process JSON parsing.
Robert Sesek 2015/05/14 20:12:33 May want to mention that this is an adapter and wh
Eran Messeri 2015/05/15 12:52:40 Done.
16 class SafeJsonParserHandler : public UtilityMessageHandler {
17 public:
18 SafeJsonParserHandler();
19 ~SafeJsonParserHandler() override;
20
21 // UtilityMessageHandler
22 bool OnMessageReceived(const IPC::Message& message) override;
23
24 private:
25 scoped_ptr<safe_json_parser::SafeJsonParserMessageFilter> handler_;
Robert Sesek 2015/05/14 20:12:33 DISALLOW_COPY_AND_ASSIGN
Eran Messeri 2015/05/15 12:52:40 Done.
26 };
27
28 #endif // CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698