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

Side by Side Diff: chrome/utility/utility_thread.cc

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. Created 10 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
« no previous file with comments | « chrome/test/test_notification_tracker.h ('k') | no next file » | 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) 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 #include "chrome/utility/utility_thread.h" 5 #include "chrome/utility/utility_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include "base/iat_patch.h" 11 #include "base/iat_patch.h"
12 #endif 12 #endif
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/common/child_process.h" 15 #include "chrome/common/child_process.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "chrome/common/extensions/extension_unpacker.h" 17 #include "chrome/common/extensions/extension_unpacker.h"
18 #include "chrome/common/extensions/update_manifest.h" 18 #include "chrome/common/extensions/update_manifest.h"
19 #include "chrome/common/indexed_db_key.h" 19 #include "chrome/common/indexed_db_key.h"
20 #include "chrome/common/utility_messages.h" 20 #include "chrome/common/utility_messages.h"
21 #include "chrome/common/web_resource/web_resource_unpacker.h" 21 #include "chrome/common/web_resource/web_resource_unpacker.h"
22 #include "gfx/rect.h" 22 #include "gfx/rect.h"
23 #include "printing/native_metafile.h" 23 #include "printing/native_metafile.h"
24 #include "printing/page_range.h" 24 #include "printing/page_range.h"
25 #include "printing/units.h" 25 #include "printing/units.h"
26 #include "third_party/skia/include/core/SkBitmap.h" 26 #include "third_party/skia/include/core/SkBitmap.h"
27 #include "webkit/glue/idb_bindings.h" 27 #include "webkit/glue/idb_bindings.h"
28 #include "webkit/glue/image_decoder.h" 28 #include "webkit/glue/image_decoder.h"
29 29 #include "third_party/WebKit/WebKit/chromium/public/WebSerializedScriptValue.h"
30 30
31 namespace { 31 namespace {
32 32
33 template<typename SRC, typename DEST> 33 template<typename SRC, typename DEST>
34 void ConvertVector(const SRC& src, DEST* dest) { 34 void ConvertVector(const SRC& src, DEST* dest) {
35 dest->reserve(src.size()); 35 dest->reserve(src.size());
36 for (typename SRC::const_iterator i = src.begin(); i != src.end(); ++i) 36 for (typename SRC::const_iterator i = src.begin(); i != src.end(); ++i)
37 dest->push_back(typename DEST::value_type(*i)); 37 dest->push_back(typename DEST::value_type(*i));
38 } 38 }
39 39
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 299
300 void UtilityThread::OnBatchModeFinished() { 300 void UtilityThread::OnBatchModeFinished() {
301 ChildProcess::current()->ReleaseProcess(); 301 ChildProcess::current()->ReleaseProcess();
302 } 302 }
303 303
304 void UtilityThread::ReleaseProcessIfNeeded() { 304 void UtilityThread::ReleaseProcessIfNeeded() {
305 if (!batch_mode_) 305 if (!batch_mode_)
306 ChildProcess::current()->ReleaseProcess(); 306 ChildProcess::current()->ReleaseProcess();
307 } 307 }
OLDNEW
« no previous file with comments | « chrome/test/test_notification_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698