| // Copyright 2018 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "extensions/browser/activity.h" |
| #include "base/logging.h" |
| #include "base/notreached.h" |
| const char Activity::kCancelSuspend[] = "cancel-suspend"; |
| const char Activity::kCreatePage[] = "create-page"; |
| const char Activity::kIPC[] = "IPC"; |
| const char Activity::kPictureInPicture[] = "picture-in-picture"; |
| const char Activity::kRenderFrame[] = "render-frame"; |
| const char* Activity::ToString(Type type) { |
| case LIFECYCLE_MANAGEMENT: |
| return "LIFECYCLE_MANAGEMENT"; |
| return "PROCESS_MANAGER"; |
| } // namespace extensions |