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

Side by Side Diff: content/utility/utility_thread_impl.h

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IndexedDBKeyPath to content namespace, formatting nits. Created 8 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 5 #ifndef CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_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/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/string16.h"
15 #include "content/common/child_thread.h" 14 #include "content/common/child_thread.h"
16 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
17 #include "content/public/utility/utility_thread.h" 16 #include "content/public/utility/utility_thread.h"
18 17
19 class FilePath; 18 class FilePath;
20 class IndexedDBKey; 19 class IndexedDBKey;
21 20
22 namespace content { 21 namespace content {
22 class IndexedDBKeyPath;
23 class SerializedScriptValue; 23 class SerializedScriptValue;
24 class WebKitPlatformSupportImpl; 24 class WebKitPlatformSupportImpl;
25 } 25 }
26 26
27 // This class represents the background thread where the utility task runs. 27 // This class represents the background thread where the utility task runs.
28 class UtilityThreadImpl : public content::UtilityThread, 28 class UtilityThreadImpl : public content::UtilityThread,
29 public ChildThread { 29 public ChildThread {
30 public: 30 public:
31 UtilityThreadImpl(); 31 UtilityThreadImpl();
32 virtual ~UtilityThreadImpl(); 32 virtual ~UtilityThreadImpl();
33 33
34 virtual bool Send(IPC::Message* msg) OVERRIDE; 34 virtual bool Send(IPC::Message* msg) OVERRIDE;
35 virtual void ReleaseProcessIfNeeded() OVERRIDE; 35 virtual void ReleaseProcessIfNeeded() OVERRIDE;
36 #if defined(OS_WIN) 36 #if defined(OS_WIN)
37 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 37 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
38 virtual void ReleaseCachedFonts() OVERRIDE; 38 virtual void ReleaseCachedFonts() OVERRIDE;
39 #endif 39 #endif
40 40
41 private: 41 private:
42 // ChildThread implementation. 42 // ChildThread implementation.
43 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 43 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
44 44
45 // IPC message handlers. 45 // IPC message handlers.
46 void OnIDBKeysFromValuesAndKeyPath( 46 void OnIDBKeysFromValuesAndKeyPath(
47 int id, 47 int id,
48 const std::vector<content::SerializedScriptValue>& 48 const std::vector<content::SerializedScriptValue>&
49 serialized_script_values, 49 serialized_script_values,
50 const string16& idb_key_path); 50 const content::IndexedDBKeyPath& idb_key_path);
51 void OnInjectIDBKey(const IndexedDBKey& key, 51 void OnInjectIDBKey(const IndexedDBKey& key,
52 const content::SerializedScriptValue& value, 52 const content::SerializedScriptValue& value,
53 const string16& key_path); 53 const content::IndexedDBKeyPath& key_path);
54 void OnBatchModeStarted(); 54 void OnBatchModeStarted();
55 void OnBatchModeFinished(); 55 void OnBatchModeFinished();
56 56
57 #if defined(OS_POSIX) 57 #if defined(OS_POSIX)
58 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths); 58 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths);
59 #endif // OS_POSIX 59 #endif // OS_POSIX
60 60
61 // True when we're running in batch mode. 61 // True when we're running in batch mode.
62 bool batch_mode_; 62 bool batch_mode_;
63 63
64 scoped_ptr<content::WebKitPlatformSupportImpl> webkit_platform_support_; 64 scoped_ptr<content::WebKitPlatformSupportImpl> webkit_platform_support_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); 66 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl);
67 }; 67 };
68 68
69 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 69 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698