summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/ppp_flash_browser_operations_shared.h
blob: 7584390ea85250bbdef1eb5eb0f5b1bacc488026 (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
29
30
// 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 PPAPI_SHARED_IMPL_PPP_FLASH_BROWSER_OPERATIONS_SHARED_H_
#define PPAPI_SHARED_IMPL_PPP_FLASH_BROWSER_OPERATIONS_SHARED_H_

#include <string>
#include <vector>

#include "ppapi/c/private/ppp_flash_browser_operations.h"

namespace ppapi {

struct FlashSiteSetting {
  FlashSiteSetting()
      : permission(PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT) {}
  FlashSiteSetting(const std::string& in_site,
                   PP_Flash_BrowserOperations_Permission in_permission)
      : site(in_site), permission(in_permission) {}

  std::string site;
  PP_Flash_BrowserOperations_Permission permission;
};

typedef std::vector<FlashSiteSetting> FlashSiteSettings;

}  // namespace ppapi

#endif  // PPAPI_SHARED_IMPL_PPP_FLASH_BROWSER_OPERATIONS_SHARED_H_