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

Unified Diff: chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: add (c) header Created 6 years, 4 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: chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
diff --git a/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h b/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
new file mode 100644
index 0000000000000000000000000000000000000000..000f5e1b4384d0dfe5306881e2dd737a498ab8dd
--- /dev/null
+++ b/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
@@ -0,0 +1,38 @@
+// Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_
+#define CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_
+
+#include "extensions/browser/guest_view/guest_view.h"
+
+class MimeHandlerViewGuest :
+ public extensions::GuestView<MimeHandlerViewGuest> {
+ public:
+ static GuestViewBase* Create(content::BrowserContext* browser_context,
+ int guest_instance_id);
+
+ static const char Type[];
+
+ // GuestViewBase implementation.
+ virtual const char* GetAPINamespace() OVERRIDE;
Fady Samuel 2014/09/02 15:08:24 I'm surprised this compiles without a TaskPrefix?
lazyboy 2014/09/02 20:17:21 I stopped syncing cause refactoring to extensions/
+ virtual void CreateWebContents(
+ const std::string& embedder_extension_id,
+ int embedder_render_process_id,
+ const base::DictionaryValue& create_params,
+ const WebContentsCreatedCallback& callback) OVERRIDE;
+ virtual void DidAttachToEmbedder() OVERRIDE;
+ virtual void DidInitialize() OVERRIDE;
+
+ private:
+ MimeHandlerViewGuest(content::BrowserContext* browser_context,
+ int guest_instance_id);
+ virtual ~MimeHandlerViewGuest();
+
+ void AttachWebContentsHelpers(content::WebContents* contents);
+
+ DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest);
+};
+
+#endif // CHROME_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_H_

Powered by Google App Engine
This is Rietveld 408576698