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

Side by Side Diff: chrome/browser/extensions/crx_file.h

Issue 10698144: Remove #pragma once from chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/convert_web_app.h ('k') | chrome/browser/extensions/crx_installer.h » ('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_CRX_FILE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_FILE_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_FILE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_FILE_H_
7 #pragma once
8 7
9 #include <sys/types.h> 8 #include <sys/types.h>
10 #include "base/basictypes.h" 9 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
12 11
13 // CRX files have a header that includes a magic key, version number, and 12 // CRX files have a header that includes a magic key, version number, and
14 // some signature sizing information. Use CrxFile object to validate whether 13 // some signature sizing information. Use CrxFile object to validate whether
15 // the header is valid or not. 14 // the header is valid or not.
16 15
17 class CrxFile { 16 class CrxFile {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 64
66 // Constructor is private. Clients should use static factory methods above. 65 // Constructor is private. Clients should use static factory methods above.
67 explicit CrxFile(const Header& header); 66 explicit CrxFile(const Header& header);
68 67
69 // Checks the |header| for validity and returns true if the values are valid. 68 // Checks the |header| for validity and returns true if the values are valid.
70 // If false is returned, more detailed error code is returned in |error|. 69 // If false is returned, more detailed error code is returned in |error|.
71 static bool HeaderIsValid(const Header& header, Error* error); 70 static bool HeaderIsValid(const Header& header, Error* error);
72 }; 71 };
73 72
74 #endif // CHROME_BROWSER_EXTENSIONS_CRX_FILE_H_ 73 #endif // CHROME_BROWSER_EXTENSIONS_CRX_FILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/convert_web_app.h ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698