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

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: sync @tott Created 6 years, 5 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..d7def25b34a55aaefe5dbbd51ae8ee04d5b8b433
--- /dev/null
+++ b/chrome/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
@@ -0,0 +1,39 @@
+// 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 "chrome/browser/guest_view/guest_view.h"
+
+class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest> {
+ public:
+ static const char Type[];
+
+ MimeHandlerViewGuest(content::BrowserContext* browser_context,
+ int guest_instance_id);
+
+ // GuestViewBase implementation.
+ virtual bool CanEmbedderUseGuestView(
+ const std::string& embedder_extension_id) OVERRIDE;
+ 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:
+ virtual ~MimeHandlerViewGuest();
+
+ void AttachWebContentsHelpers(content::WebContents* contents);
+ void NavigateGuest(const std::string& src);
Fady Samuel 2014/07/21 14:47:35 Get rid of this?
lazyboy 2014/07/21 17:28:21 Done.
+
+ bool has_navigated_;
Fady Samuel 2014/07/21 14:47:35 Get rid of this?
lazyboy 2014/07/21 17:28:21 Done.
+
+ 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