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

Side by Side Diff: chrome/browser/in_process_webkit/indexed_db_key_utility_client.h

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final review changes Created 10 years 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) 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 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/waitable_event.h" 10 #include "base/waitable_event.h"
(...skipping 27 matching lines...) Expand all
38 const std::vector<SerializedScriptValue>& values, 38 const std::vector<SerializedScriptValue>& values,
39 const string16& key_path, 39 const string16& key_path,
40 std::vector<IndexedDBKey>* keys); 40 std::vector<IndexedDBKey>* keys);
41 41
42 private: 42 private:
43 class Client : public UtilityProcessHost::Client { 43 class Client : public UtilityProcessHost::Client {
44 public: 44 public:
45 explicit Client(IndexedDBKeyUtilityClient* parent); 45 explicit Client(IndexedDBKeyUtilityClient* parent);
46 46
47 // UtilityProcessHost::Client 47 // UtilityProcessHost::Client
48 virtual void OnProcessCrashed(); 48 virtual void OnProcessCrashed(int exit_code);
49 virtual void OnIDBKeysFromValuesAndKeyPathSucceeded( 49 virtual void OnIDBKeysFromValuesAndKeyPathSucceeded(
50 int id, const std::vector<IndexedDBKey>& keys); 50 int id, const std::vector<IndexedDBKey>& keys);
51 virtual void OnIDBKeysFromValuesAndKeyPathFailed(int id); 51 virtual void OnIDBKeysFromValuesAndKeyPathFailed(int id);
52 52
53 private: 53 private:
54 IndexedDBKeyUtilityClient* parent_; 54 IndexedDBKeyUtilityClient* parent_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(Client); 56 DISALLOW_COPY_AND_ASSIGN(Client);
57 }; 57 };
58 58
(...skipping 24 matching lines...) Expand all
83 std::vector<IndexedDBKey> keys_; 83 std::vector<IndexedDBKey> keys_;
84 84
85 // Used in the IO thread. 85 // Used in the IO thread.
86 UtilityProcessHost* utility_process_host_; 86 UtilityProcessHost* utility_process_host_;
87 scoped_refptr<Client> client_; 87 scoped_refptr<Client> client_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyUtilityClient); 89 DISALLOW_COPY_AND_ASSIGN(IndexedDBKeyUtilityClient);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_ 92 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_KEY_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer.cc ('k') | chrome/browser/in_process_webkit/indexed_db_key_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698