• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import {FunctionUtils} from 'common/function_utils';
18import {
19  BuganizerAttachmentsDownloadEmitter,
20  OnBuganizerAttachmentsDownloaded,
21  OnBuganizerAttachmentsDownloadStart,
22} from 'interfaces/buganizer_attachments_download_emitter';
23import {Runnable} from 'interfaces/runnable';
24
25export class AbtChromeExtensionProtocolStub
26  implements BuganizerAttachmentsDownloadEmitter, Runnable
27{
28  onBuganizerAttachmentsDownloadStart: OnBuganizerAttachmentsDownloadStart =
29    FunctionUtils.DO_NOTHING;
30  onBuganizerAttachmentsDownloaded: OnBuganizerAttachmentsDownloaded =
31    FunctionUtils.DO_NOTHING_ASYNC;
32
33  setOnBuganizerAttachmentsDownloadStart(callback: OnBuganizerAttachmentsDownloadStart) {
34    this.onBuganizerAttachmentsDownloadStart = callback;
35  }
36
37  setOnBuganizerAttachmentsDownloaded(callback: OnBuganizerAttachmentsDownloaded) {
38    this.onBuganizerAttachmentsDownloaded = callback;
39  }
40
41  run() {
42    // do nothing
43  }
44}
45