| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ |
| 6 #define CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ | 6 #define CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ |
| 7 | 7 |
| 8 class GURL; | 8 class GURL; |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class WebIntentsDispatcher; | 11 class WebIntentsDispatcher; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace web_intents { | 14 namespace web_intents { |
| 15 | 15 |
| 16 // Interface allowing services to be implemented in various host environments. | 16 // Interface allowing services to be implemented in various host environments. |
| 17 // Implementations should be owned by their creator. |
| 17 class IntentServiceHost { | 18 class IntentServiceHost { |
| 18 public: | 19 public: |
| 19 virtual ~IntentServiceHost() {} | 20 virtual ~IntentServiceHost() {} |
| 20 | 21 |
| 21 // Handle all necessary service-side processing of an intent. | 22 // Handle all necessary service-side processing of an intent. |
| 22 virtual void HandleIntent(content::WebIntentsDispatcher* dispatcher) = 0; | 23 virtual void HandleIntent(content::WebIntentsDispatcher* dispatcher) = 0; |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // web_intents namespaces | 26 } // web_intents namespaces |
| 26 | 27 |
| 27 #endif // CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ | 28 #endif // CHROME_BROWSER_INTENTS_INTENT_SERVICE_HOST_H_ |
| OLD | NEW |