summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/intents/web_intent_picker_delegate.h
blob: 7a2b763790cac76407e47f963e9f4d219ec8aa9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_
#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_
#pragma once

// A class used to notify the delegate when the user has chosen a web intent
// service.
class WebIntentPickerDelegate {
 public:
  // Base destructor.
  virtual ~WebIntentPickerDelegate() {}

  // Callback called when the user has chosen a service.
  virtual void OnServiceChosen(size_t index) = 0;

  // Callback called when the user cancels out of the dialog.
  virtual void OnCancelled() = 0;
};

#endif  // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_DELEGATE_H_