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

Unified Diff: extensions/browser/guest_view/guest_view_message_filter.h

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac Build + GN Test builds Created 5 years, 8 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: extensions/browser/guest_view/guest_view_message_filter.h
diff --git a/extensions/browser/guest_view/guest_view_message_filter.h b/extensions/browser/guest_view/guest_view_message_filter.h
deleted file mode 100644
index c5fb487c9ec77bafe1b8d0ac14551f7b46e7a01d..0000000000000000000000000000000000000000
--- a/extensions/browser/guest_view/guest_view_message_filter.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_
-#define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "content/public/browser/browser_message_filter.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
-namespace gfx {
-class Size;
-}
-
-namespace extensions {
-
-// This class filters out incoming GuestView-specific IPC messages from the
-// renderer process. It is created on the UI thread. Messages may be handled on
-// the IO thread or the UI thread.
-class GuestViewMessageFilter : public content::BrowserMessageFilter {
- public:
- GuestViewMessageFilter(int render_process_id,
- content::BrowserContext* context);
-
- private:
- friend class content::BrowserThread;
- friend class base::DeleteHelper<GuestViewMessageFilter>;
-
- ~GuestViewMessageFilter() override;
-
- // content::BrowserMessageFilter implementation.
- void OverrideThreadForMessage(const IPC::Message& message,
- content::BrowserThread::ID* thread) override;
- void OnDestruct() const override;
- bool OnMessageReceived(const IPC::Message& message) override;
-
- // Message handlers on the UI thread.
- void OnAttachGuest(int element_instance_id,
- int guest_instance_id,
- const base::DictionaryValue& attach_params);
-
- const int render_process_id_;
-
- // Should only be accessed on the UI thread.
- content::BrowserContext* const browser_context_;
-
- // Weak pointers produced by this factory are bound to the IO thread.
- base::WeakPtrFactory<GuestViewMessageFilter> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(GuestViewMessageFilter);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698