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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/utility_thread.h
diff --git a/chrome/utility/utility_thread.h b/chrome/utility/utility_thread.h
index 1f86cdc464296c13b707e2ae3a785b0489d66de3..a92c08b622423afc674bb64f33a18ba7774b4894 100644
--- a/chrome/utility/utility_thread.h
+++ b/chrome/utility/utility_thread.h
@@ -14,6 +14,7 @@
#include "printing/native_metafile.h"
class GURL;
+class SerializedScriptValue;
class SkBitmap;
namespace gfx {
@@ -68,6 +69,25 @@ class UtilityThread : public ChildThread {
int* highest_rendered_page_number);
#endif // defined(OS_WIN)
+ // IPC for extracting IDBKeys from SerializedScriptValues, used by IndexedDB.
+ void OnIDBKeysFromValuesAndKeyPath(
+ int id,
+ const std::vector<SerializedScriptValue>& serialized_script_values,
+ const string16& idb_key_path);
+
+ // IPC to notify we'll be running in batch mode instead of quitting after
+ // any of the IPCs above, we'll only quit during OnBatchModeFinished().
+ void OnBatchModeStarted();
+
+ // IPC to notify batch mode has finished and we should now quit.
+ void OnBatchModeFinished();
+
+ // Releases the process if we are not (or no longer) in batch mode.
+ void ReleaseProcessIfNeeded();
+
+ // True when we're running in batch mode.
+ bool batch_mode_;
+
DISALLOW_COPY_AND_ASSIGN(UtilityThread);
};
« 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