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

Side by Side Diff: chrome/browser/extensions/updater/safe_manifest_parser.h

Issue 454873005: Move UpdateManifest to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.h ('k') | chrome/chrome_common.gypi » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UPDATER_SAFE_MANIFEST_PARSER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_SAFE_MANIFEST_PARSER_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_SAFE_MANIFEST_PARSER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_SAFE_MANIFEST_PARSER_H_
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" 12 #include "chrome/browser/extensions/updater/manifest_fetch_data.h"
13 #include "chrome/common/extensions/update_manifest.h"
14 #include "content/public/browser/utility_process_host_client.h" 13 #include "content/public/browser/utility_process_host_client.h"
14 #include "extensions/common/update_manifest.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // Utility class to handle doing xml parsing in a sandboxed utility process. 18 // Utility class to handle doing xml parsing in a sandboxed utility process.
19 class SafeManifestParser : public content::UtilityProcessHostClient { 19 class SafeManifestParser : public content::UtilityProcessHostClient {
20 public: 20 public:
21 // Callback that is invoked when the manifest results are ready. 21 // Callback that is invoked when the manifest results are ready.
22 typedef base::Callback<void(const ManifestFetchData&, 22 typedef base::Callback<void(const ManifestFetchData&,
23 const UpdateManifest::Results*)> UpdateCallback; 23 const UpdateManifest::Results*)> UpdateCallback;
24 24
(...skipping 23 matching lines...) Expand all
48 // Should be accessed only on UI thread. 48 // Should be accessed only on UI thread.
49 scoped_ptr<ManifestFetchData> fetch_data_; 49 scoped_ptr<ManifestFetchData> fetch_data_;
50 UpdateCallback update_callback_; 50 UpdateCallback update_callback_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SafeManifestParser); 52 DISALLOW_COPY_AND_ASSIGN(SafeManifestParser);
53 }; 53 };
54 54
55 } // namespace extensions 55 } // namespace extensions
56 56
57 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_SAFE_MANIFEST_PARSER_H_ 57 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_SAFE_MANIFEST_PARSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.h ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698