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

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
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_;
dgrogan 2012/03/06 00:51:49 If a raw pointer was safe enough before, shouldn't
michaeln 2012/03/06 01:14:51 ...and if it really wasn't? The object we pointed
dgrogan 2012/03/06 01:16:24 Ok, I suspected that might have been the case.
scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_;
};
« no previous file with comments | « no previous file | content/common/web_database_observer_impl.cc » ('j') | content/common/web_database_observer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698