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

Side by Side Diff: chrome/common/extensions/update_manifest.h

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_
6 #define CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ 6 #define CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 // The <daystart> tag contains a "elapsed_seconds" attribute which refers to 29 // The <daystart> tag contains a "elapsed_seconds" attribute which refers to
30 // the server's notion of how many seconds it has been since midnight. 30 // the server's notion of how many seconds it has been since midnight.
31 // 31 //
32 // The "appid" attribute of the <app> tag refers to the unique id of the 32 // The "appid" attribute of the <app> tag refers to the unique id of the
33 // extension. The "codebase" attribute of the <updatecheck> tag is the url to 33 // extension. The "codebase" attribute of the <updatecheck> tag is the url to
34 // fetch the updated crx file, and the "prodversionmin" attribute refers to 34 // fetch the updated crx file, and the "prodversionmin" attribute refers to
35 // the minimum version of the chrome browser that the update applies to. 35 // the minimum version of the chrome browser that the update applies to.
36 36
37 // The result of parsing one <app> tag in an xml update check manifest. 37 // The result of parsing one <app> tag in an xml update check manifest.
38 struct Result { 38 struct Result {
39 Result();
40 ~Result();
41
39 std::string extension_id; 42 std::string extension_id;
40 std::string version; 43 std::string version;
41 std::string browser_min_version; 44 std::string browser_min_version;
42 std::string package_hash; 45 std::string package_hash;
43 GURL crx_url; 46 GURL crx_url;
44 }; 47 };
45 48
46 static const int kNoDaystart = -1; 49 static const int kNoDaystart = -1;
47 struct Results { 50 struct Results {
48 Results(); 51 Results();
(...skipping 20 matching lines...) Expand all
69 Results results_; 72 Results results_;
70 std::string errors_; 73 std::string errors_;
71 74
72 // Helper function that adds parse error details to our errors_ string. 75 // Helper function that adds parse error details to our errors_ string.
73 void ParseError(const char* details, ...); 76 void ParseError(const char* details, ...);
74 77
75 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); 78 DISALLOW_COPY_AND_ASSIGN(UpdateManifest);
76 }; 79 };
77 80
78 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ 81 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698