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

Unified Diff: content/common/web_database_observer_impl.h

Issue 9614002: Use SyncMessageFilter to Send() ipc messages from background threads. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « no previous file | content/common/web_database_observer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/web_database_observer_impl.h
===================================================================
--- content/common/web_database_observer_impl.h (revision 124748)
+++ content/common/web_database_observer_impl.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,13 +7,13 @@
#pragma once
#include "base/memory/ref_counted.h"
-#include "ipc/ipc_message.h"
+#include "ipc/ipc_sync_message_filter.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabaseObserver.h"
#include "webkit/database/database_connections.h"
class WebDatabaseObserverImpl : public WebKit::WebDatabaseObserver {
public:
- explicit WebDatabaseObserverImpl(IPC::Message::Sender* sender);
+ explicit WebDatabaseObserverImpl(IPC::SyncMessageFilter* sender);
virtual ~WebDatabaseObserverImpl();
virtual void databaseOpened(const WebKit::WebDatabase& database) OVERRIDE;
@@ -43,7 +43,7 @@
private:
void HandleSqliteError(const WebKit::WebDatabase& database, int error);
- IPC::Message::Sender* sender_;
+ scoped_refptr<IPC::SyncMessageFilter> sender_;
scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_;
};
« no previous file with comments | « no previous file | content/common/web_database_observer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698