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

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

Issue 18690003: Abort SandboxedUnpacker::RewriteImageFiles on browser shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comment Created 7 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
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_SANDBOXED_UNPACKER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 ERROR_SAVING_MANIFEST_JSON, 127 ERROR_SAVING_MANIFEST_JSON,
128 128
129 // SandboxedUnpacker::RewriteImageFiles() 129 // SandboxedUnpacker::RewriteImageFiles()
130 COULD_NOT_READ_IMAGE_DATA_FROM_DISK, 130 COULD_NOT_READ_IMAGE_DATA_FROM_DISK,
131 DECODED_IMAGES_DO_NOT_MATCH_THE_MANIFEST, 131 DECODED_IMAGES_DO_NOT_MATCH_THE_MANIFEST,
132 INVALID_PATH_FOR_BROWSER_IMAGE, 132 INVALID_PATH_FOR_BROWSER_IMAGE,
133 ERROR_REMOVING_OLD_IMAGE_FILE, 133 ERROR_REMOVING_OLD_IMAGE_FILE,
134 INVALID_PATH_FOR_BITMAP_IMAGE, 134 INVALID_PATH_FOR_BITMAP_IMAGE,
135 ERROR_RE_ENCODING_THEME_IMAGE, 135 ERROR_RE_ENCODING_THEME_IMAGE,
136 ERROR_SAVING_THEME_IMAGE, 136 ERROR_SAVING_THEME_IMAGE,
137 ABORTED_DUE_TO_SHUTDOWN,
137 138
138 // SandboxedUnpacker::RewriteCatalogFiles() 139 // SandboxedUnpacker::RewriteCatalogFiles()
139 COULD_NOT_READ_CATALOG_DATA_FROM_DISK, 140 COULD_NOT_READ_CATALOG_DATA_FROM_DISK,
140 INVALID_CATALOG_DATA, 141 INVALID_CATALOG_DATA,
141 INVALID_PATH_FOR_CATALOG, 142 INVALID_PATH_FOR_CATALOG,
142 ERROR_SERIALIZING_CATALOG, 143 ERROR_SERIALIZING_CATALOG,
143 ERROR_SAVING_CATALOG, 144 ERROR_SAVING_CATALOG,
144 145
145 NUM_FAILURE_REASONS 146 NUM_FAILURE_REASONS
146 }; 147 };
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // when calling Extenion::Create() by the crx installer. 234 // when calling Extenion::Create() by the crx installer.
234 int creation_flags_; 235 int creation_flags_;
235 236
236 // Sequenced task runner where file I/O operations will be performed at. 237 // Sequenced task runner where file I/O operations will be performed at.
237 scoped_refptr<base::SequencedTaskRunner> unpacker_io_task_runner_; 238 scoped_refptr<base::SequencedTaskRunner> unpacker_io_task_runner_;
238 }; 239 };
239 240
240 } // namespace extensions 241 } // namespace extensions
241 242
242 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ 243 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_
OLDNEW
« no previous file with comments | « base/threading/sequenced_worker_pool.cc ('k') | chrome/browser/extensions/sandboxed_unpacker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698