summaryrefslogtreecommitdiffstats
path: root/chrome/browser/intents/intent_service_host.h
blob: 8c42be9ef0d130c674b532dc543d8d2535833191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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.

#ifndef CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_
#define CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_

class GURL;

namespace content {
class WebIntentsDispatcher;
}

namespace web_intents {

// Interface allowing services to be implemented in various host environments.
class IntentServiceHost {
 public:
  virtual ~IntentServiceHost() {}

  // Handle all necessary service-side processing of an intent. A service
  // can reply to the intent via |dispatcher|.
  virtual void HandleIntent(content::WebIntentsDispatcher* dispatcher) = 0;
};

}  // namespace web_intents

#endif  // CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_