Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / webcam_private / webcam.cc
blobd5bd0903739d505b4ea08c2baea3c7e6674e8b66
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/browser/api/webcam_private/webcam.h"
7 namespace extensions {
9 Webcam::Webcam() {}
10 Webcam::~Webcam() {}
12 WebcamResource::WebcamResource(const std::string& owner_extension_id,
13 Webcam* webcam,
14 const std::string& webcam_id)
15 : ApiResource(owner_extension_id), webcam_(webcam), webcam_id_(webcam_id) {
18 WebcamResource::~WebcamResource() {
21 Webcam* WebcamResource::GetWebcam() const {
22 return webcam_.get();
25 const std::string WebcamResource::GetWebcamId() const {
26 return webcam_id_;
29 bool WebcamResource::IsPersistent() const {
30 return false;
33 } // namespace extensions