| Index: content/renderer/intents_dispatcher.h
|
| diff --git a/content/renderer/intents_dispatcher.h b/content/renderer/intents_dispatcher.h
|
| deleted file mode 100644
|
| index 2ebc324e4722672b3dae18aec8d31549eddd2498..0000000000000000000000000000000000000000
|
| --- a/content/renderer/intents_dispatcher.h
|
| +++ /dev/null
|
| @@ -1,69 +0,0 @@
|
| -// Copyright (c) 2011 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 CONTENT_RENDERER_INTENTS_DISPATCHER_H_
|
| -#define CONTENT_RENDERER_INTENTS_DISPATCHER_H_
|
| -#pragma once
|
| -
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "content/public/renderer/render_view_observer.h"
|
| -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
|
| -#include "webkit/glue/web_intent_data.h"
|
| -#include "webkit/glue/web_intent_reply_data.h"
|
| -
|
| -class RenderViewImpl;
|
| -
|
| -namespace WebKit {
|
| -class WebFrame;
|
| -}
|
| -
|
| -namespace webkit_glue {
|
| -struct WebIntentData;
|
| -}
|
| -
|
| -// IntentsDispatcher is a delegate for Web Intents messages. It is the
|
| -// renderer-side handler for IPC messages delivering the intent payload data
|
| -// and preparing it for access by the service page.
|
| -class IntentsDispatcher : public content::RenderViewObserver {
|
| - public:
|
| - // |render_view| must not be NULL.
|
| - explicit IntentsDispatcher(RenderViewImpl* render_view);
|
| - virtual ~IntentsDispatcher();
|
| -
|
| - // Called by the bound intent object to register the result from the service
|
| - // page.
|
| - void OnResult(const WebKit::WebString& data);
|
| - void OnFailure(const WebKit::WebString& data);
|
| -
|
| - private:
|
| - class BoundDeliveredIntent;
|
| -
|
| - // RenderView::Observer implementation.
|
| - virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| - virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE;
|
| -
|
| - // TODO(gbillock): Do we need various ***ClientRedirect methods to implement
|
| - // intent cancelling policy? Figure this out.
|
| -
|
| - // On the service page, handler method for the IntentsMsg_SetWebIntent
|
| - // message.
|
| - void OnSetIntent(const webkit_glue::WebIntentData& intent);
|
| -
|
| - // On the client page, handler method for the IntentsMsg_WebIntentReply
|
| - // message.
|
| - void OnWebIntentReply(webkit_glue::WebIntentReplyType reply_type,
|
| - const WebKit::WebString& data,
|
| - int intent_id);
|
| -
|
| - // Delivered intent data from the caller.
|
| - scoped_ptr<webkit_glue::WebIntentData> intent_;
|
| -
|
| - // Representation of the intent data as a C++ bound NPAPI object to be
|
| - // injected into the Javascript context.
|
| - scoped_ptr<BoundDeliveredIntent> delivered_intent_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(IntentsDispatcher);
|
| -};
|
| -
|
| -#endif // CONTENT_RENDERER_INTENTS_DISPATCHER_H_
|
|
|