This file is indexed.

/usr/include/thunderbird/mozilla/SQLiteInterposer.h is in thunderbird-dev 1:24.4.0+build1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef SQLITEINTERPOSER_H_
#define SQLITEINTERPOSER_H_

#ifdef MOZ_ENABLE_PROFILER_SPS

#include "IOInterposer.h"
#include "mozilla/Atomics.h"

namespace mozilla {

/**
 * This class provides main thread I/O interposing for SQLite reads, writes,
 * and fsyncs. Most methods must be called from the main thread, except for:
 *   Enable
 *   OnRead
 *   OnWrite
 *   OnFSync
 */
class SQLiteInterposer MOZ_FINAL : public IOInterposerModule
{
public:
  static IOInterposerModule* GetInstance(IOInterposeObserver* aObserver, 
      IOInterposeObserver::Operation aOpsToInterpose);

  /**
   * This function must be called from the main thread, and furthermore
   * it must be called when no other threads are executing in OnRead, OnWrite,
   * or OnFSync. Effectivly this restricts us to calling it only after all other
   * threads have been stopped during shutdown.
   */
  static void ClearInstance();

  ~SQLiteInterposer();
  void Enable(bool aEnable);

  typedef void (*EventHandlerFn)(double&);
  static void OnRead(double& aDuration);
  static void OnWrite(double& aDuration);
  static void OnFSync(double& aDuration);

private:
  SQLiteInterposer();
  bool Init(IOInterposeObserver* aObserver,
            IOInterposeObserver::Operation aOpsToInterpose);

  IOInterposeObserver*            mObserver;
  IOInterposeObserver::Operation  mOps;
  Atomic<uint32_t,ReleaseAcquire> mEnabled;
};

} // namespace mozilla

#else // MOZ_ENABLE_PROFILER_SPS

namespace mozilla {

class SQLiteInterposer MOZ_FINAL
{
public:
  typedef void (*EventHandlerFn)(double&);
  static inline void OnRead(double& aDuration) {}
  static inline void OnWrite(double& aDuration) {}
  static inline void OnFSync(double& aDuration) {}
};

} // namespace mozilla

#endif // MOZ_ENABLE_PROFILER_SPS

#endif // SQLITEINTERPOSER_H_