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

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

Issue 3043037: Adds IDBKeyPath parser / extractor, and provides a mechanism to call it sandboxed. (Closed)
Patch Set: Makes MSVC happy. 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/common/utility_messages_internal.h ('k') | chrome/utility/utility_thread.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_UTILITY_UTILITY_THREAD_H_ 5 #ifndef CHROME_UTILITY_UTILITY_THREAD_H_
6 #define CHROME_UTILITY_UTILITY_THREAD_H_ 6 #define CHROME_UTILITY_UTILITY_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "chrome/common/child_thread.h" 13 #include "chrome/common/child_thread.h"
14 #include "printing/native_metafile.h" 14 #include "printing/native_metafile.h"
15 15
16 class GURL; 16 class GURL;
17 class SerializedScriptValue;
17 class SkBitmap; 18 class SkBitmap;
18 19
19 namespace gfx { 20 namespace gfx {
20 class Rect; 21 class Rect;
21 } // namespace gfx 22 } // namespace gfx
22 23
23 namespace printing { 24 namespace printing {
24 struct PageRange; 25 struct PageRange;
25 } // namespace printing 26 } // namespace printing
26 27
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // |highest_rendered_page_number| is set to -1 on failure to render any page. 62 // |highest_rendered_page_number| is set to -1 on failure to render any page.
62 bool RenderPDFToWinMetafile( 63 bool RenderPDFToWinMetafile(
63 base::PlatformFile pdf_file, 64 base::PlatformFile pdf_file,
64 const gfx::Rect& render_area, 65 const gfx::Rect& render_area,
65 int render_dpi, 66 int render_dpi,
66 const std::vector<printing::PageRange>& page_ranges, 67 const std::vector<printing::PageRange>& page_ranges,
67 printing::NativeMetafile* metafile, 68 printing::NativeMetafile* metafile,
68 int* highest_rendered_page_number); 69 int* highest_rendered_page_number);
69 #endif // defined(OS_WIN) 70 #endif // defined(OS_WIN)
70 71
72 // IPC for extracting IDBKeys from SerializedScriptValues, used by IndexedDB.
73 void OnIDBKeysFromValuesAndKeyPath(
74 int id,
75 const std::vector<SerializedScriptValue>& serialized_script_values,
76 const string16& idb_key_path);
77
78 // IPC to notify we'll be running in batch mode instead of quitting after
79 // any of the IPCs above, we'll only quit during OnBatchModeFinished().
80 void OnBatchModeStarted();
81
82 // IPC to notify batch mode has finished and we should now quit.
83 void OnBatchModeFinished();
84
85 // Releases the process if we are not (or no longer) in batch mode.
86 void ReleaseProcessIfNeeded();
87
88 // True when we're running in batch mode.
89 bool batch_mode_;
90
71 DISALLOW_COPY_AND_ASSIGN(UtilityThread); 91 DISALLOW_COPY_AND_ASSIGN(UtilityThread);
72 }; 92 };
73 93
74 #endif // CHROME_UTILITY_UTILITY_THREAD_H_ 94 #endif // CHROME_UTILITY_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/common/utility_messages_internal.h ('k') | chrome/utility/utility_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698